operations: terraform to standup prod infrastructure.
This commit is contained in:
20
api/Dockerfile
Normal file
20
api/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
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"]
|
Reference in New Issue
Block a user