Skip to content

Commit

Permalink
feat: use correct Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <hivert.is.coming@gmail.com>
  • Loading branch information
ghivert committed May 14, 2024
1 parent a20e9bb commit 184a84a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.1.0-erlang-alpine AS builder

RUN mkdir -p /build/backend/src
COPY apps/backend/gleam.toml /build/backend
COPY apps/backend/manifest.toml /build/backend
COPY apps/backend/src /build/backend/src
COPY packages /packages

RUN apk add ca-certificates
RUN cd /build/backend && gleam build
RUN cd /build/backend && gleam export erlang-shipment

FROM --platform=x86_64 ghcr.io/gleam-lang/gleam:v1.1.0-erlang-alpine as runner
LABEL org.opencontainers.image.source https://github.com/ghivert/gloogle

WORKDIR /app

RUN apk add ca-certificates inotify-tools
COPY --from=builder /build/backend/build/erlang-shipment .
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["run"]
20 changes: 0 additions & 20 deletions apps/backend/Dockerfile

This file was deleted.

0 comments on commit 184a84a

Please sign in to comment.