Fix dockerfile
This commit is contained in:
parent
e02ec99426
commit
a2cf8bbbd5
1 changed files with 1 additions and 6 deletions
|
@ -29,11 +29,6 @@ FROM ghcr.io/gleam-lang/gleam:${GLEAM_VERSION}-erlang-alpine
|
||||||
# Copy the compiled server code from the builder stage
|
# Copy the compiled server code from the builder stage
|
||||||
COPY --from=builder /build/server/build/erlang-shipment /app
|
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
|
# Add volume for accessing geofeed from host
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|
||||||
|
@ -45,4 +40,4 @@ ENV PORT=8080
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# Run the server
|
# Run the server
|
||||||
CMD ["/app/start.sh", "run"]
|
CMD ["/app/entrypoint.sh", "run"]
|
||||||
|
|
Loading…
Reference in a new issue