fix: remove entrypoint and create-user references from Dockerfile
This commit is contained in:
@@ -12,7 +12,6 @@ COPY . .
|
|||||||
|
|
||||||
# Build the server and the CLI tools
|
# Build the server and the CLI tools
|
||||||
RUN go build -o main_server ./cmd/server
|
RUN go build -o main_server ./cmd/server
|
||||||
RUN go build -o create_user ./cmd/create-user
|
|
||||||
|
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
@@ -25,17 +24,11 @@ RUN apt-get update && apt-get install -y ca-certificates sqlite3 && rm -rf /var/
|
|||||||
RUN mkdir -p /app/data
|
RUN mkdir -p /app/data
|
||||||
|
|
||||||
COPY --from=builder /app/main_server .
|
COPY --from=builder /app/main_server .
|
||||||
COPY --from=builder /app/create_user .
|
|
||||||
COPY --from=builder /app/static ./static
|
COPY --from=builder /app/static ./static
|
||||||
COPY --from=builder /app/migrations ./migrations
|
COPY --from=builder /app/migrations ./migrations
|
||||||
|
|
||||||
# Copy entrypoint script
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
|
||||||
RUN chmod +x /entrypoint.sh
|
|
||||||
|
|
||||||
# Expose the application port
|
# Expose the application port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Run entrypoint which handles migrations
|
# Run entrypoint which handles migrations
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
CMD ["./main_server"]
|
CMD ["./main_server"]
|
||||||
|
|||||||
Reference in New Issue
Block a user