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