2024-08-12 18:18:02 +00:00
|
|
|
FROM 063932952339.dkr.ecr.us-west-2.amazonaws.com/alpine-nim:nim-1.6.10 AS build
|
2021-10-24 22:23:39 +00:00
|
|
|
|
|
|
|
COPY hff_entry_forms_api.nimble /hff_entry_forms_api/
|
|
|
|
COPY src /hff_entry_forms_api/src
|
|
|
|
WORKDIR /hff_entry_forms_api
|
2024-08-12 18:18:02 +00:00
|
|
|
RUN nimble build -y --passC:-fpermissive
|
2021-10-24 22:23:39 +00:00
|
|
|
|
2024-08-12 18:18:02 +00:00
|
|
|
FROM alpine:3.16.4
|
2021-10-24 22:23:39 +00:00
|
|
|
EXPOSE 80
|
|
|
|
RUN apk -v --update add --no-cache \
|
|
|
|
ca-certificates \
|
|
|
|
libcrypto1.1 \
|
|
|
|
libssl1.1 \
|
|
|
|
pcre \
|
|
|
|
postgresql-client
|
|
|
|
|
|
|
|
COPY --from=build /hff_entry_forms_api/hff_entry_forms_api /
|
|
|
|
COPY hff_entry_forms_api.config.docker.json /hff_entry_forms_api.config.json
|
|
|
|
CMD ["/hff_entry_forms_api", "serve"]
|