21 lines
569 B
Docker
21 lines
569 B
Docker
|
FROM 063932952339.dkr.ecr.us-west-2.amazonaws.com/alpine-nim:nim-1.4.8 AS build
|
||
|
MAINTAINER jonathan@jdbernard.com
|
||
|
|
||
|
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
|
||
|
|
||
|
FROM alpine
|
||
|
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"]
|