hff-entry-forms/api/Dockerfile

20 lines
564 B
Docker
Raw Normal View History

FROM 063932952339.dkr.ecr.us-west-2.amazonaws.com/alpine-nim:nim-1.6.10 AS build
COPY hff_entry_forms_api.nimble /hff_entry_forms_api/
COPY src /hff_entry_forms_api/src
WORKDIR /hff_entry_forms_api
RUN nimble build -y --passC:-fpermissive
FROM alpine:3.16.4
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"]