From 11198392bcd96174ae604c28c171061c315d7c79 Mon Sep 17 00:00:00 2001 From: talksik Date: Sun, 1 Oct 2023 14:29:20 -0700 Subject: [PATCH] trying to get right paths --- Dockerfile | 1 + docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 52bfb45..83044f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ WORKDIR /app/cmd RUN CGO_ENABLED=0 GOOS=linux go build -o main FROM alpine:latest AS production +WORKDIR / COPY --from=builder /app/cmd . CMD ["./main"] diff --git a/docker-compose.yaml b/docker-compose.yaml index 45a0502..be7f1a3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,6 +7,6 @@ services: ports: - 3000:3000 volumes: - - /etc/data/flowy-landing/users.db:./users.db + - /users.db:/etc/data/flowy-landing/users.db