Skip to content

Commit 46a2333

Browse files
committed
cannot create file that will be used for mounting
1 parent ab4e492 commit 46a2333

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ RUN make dep && make build && rm fastauth cache.go
88
FROM base as builder
99
COPY *.go *.sql login.html banner.txt ./
1010
RUN make build test
11-
RUN touch fastauth.db
1211

1312
FROM gcr.io/distroless/static
1413
WORKDIR /home/nonroot
15-
COPY --from=builder /app/login.html /app/banner.txt /app/fastauth /app/rmdb.sql /app/init.sql /app/fastauth.db ./
14+
COPY --from=builder /app/login.html /app/banner.txt /app/fastauth /app/rmdb.sql /app/init.sql ./
1615
USER nonroot
1716
VOLUME /home/nonroot/fastauth.db
1817
ENTRYPOINT ["/home/nonroot/fastauth"]

0 commit comments

Comments
 (0)