gleam_stdlib now requires >= 1.14.0, breaking the v1.7.0 pin during build. Bump to v1.16.0 — a stable release with several weeks of bake time rather than today's v1.17.0.
14 lines
344 B
Docker
14 lines
344 B
Docker
FROM ghcr.io/gleam-lang/gleam:v1.16.0-erlang-alpine AS builder
|
|
WORKDIR /build
|
|
COPY gleam.toml ./
|
|
RUN gleam deps download
|
|
COPY src ./src
|
|
RUN gleam export erlang-shipment
|
|
|
|
FROM erlang:27-alpine
|
|
RUN apk add --no-cache openssl-dev
|
|
WORKDIR /app
|
|
COPY --from=builder /build/build/erlang-shipment .
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/app/entrypoint.sh", "run"]
|