FROM erlang:28.1.0.0-alpine AS build COPY --from=ghcr.io/gleam-lang/gleam:v1.12.0-erlang-alpine /bin/gleam /bin/gleam COPY . /app/ RUN cd /app && gleam export erlang-shipment FROM erlang:28.1.0.0-alpine RUN \ addgroup --system webapp && \ adduser --system webapp -g webapp USER webapp COPY --from=build /app/build/erlang-shipment /app WORKDIR /app EXPOSE [8000] ENTRYPOINT ["/app/entrypoint.sh"] CMD ["run"]