Skip to content

Commit 5af6859

Browse files
committed
workdir / in Dockerfile so it can run locally too
1 parent 1c07ac1 commit 5af6859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ FROM alpine:latest AS runner
2828
# Install runtime dependencies for the compiled binary (libsqlite3 & CA certs)
2929
RUN apk add --no-cache ca-certificates sqlite-libs
3030

31-
WORKDIR /app
31+
WORKDIR /
3232

3333
# Copy compiled binary and application assets
34-
COPY --from=builder /app/todo-app ./
34+
COPY --from=builder /app/todo-app ./app/todo-app
3535

3636
# Create data directory
3737
RUN mkdir /data
@@ -46,4 +46,4 @@ ENV PORT=8081
4646
# Run as non-root for security where possible
4747
USER nobody
4848

49-
ENTRYPOINT ["./todo-app"]
49+
ENTRYPOINT ["./app/todo-app"]

0 commit comments

Comments
 (0)