Fix dockerfile

This commit is contained in:
Lily Rose 2025-07-17 19:44:28 +10:00
parent e02ec99426
commit a2cf8bbbd5

View file

@ -29,11 +29,6 @@ FROM ghcr.io/gleam-lang/gleam:${GLEAM_VERSION}-erlang-alpine
# Copy the compiled server code from the builder stage
COPY --from=builder /build/server/build/erlang-shipment /app
# Set up the entrypoint
WORKDIR /app
RUN echo '#!/bin/sh\nexec ./entrypoint.sh "$@"' > /app/start.sh \
&& chmod +x /app/start.sh
# Add volume for accessing geofeed from host
VOLUME /data
@ -45,4 +40,4 @@ ENV PORT=8080
EXPOSE 8080
# Run the server
CMD ["/app/start.sh", "run"]
CMD ["/app/entrypoint.sh", "run"]