operations: terraform to standup prod infrastructure.

This commit is contained in:
2021-10-24 17:23:39 -05:00
parent 7e26ab73d5
commit d70012cb8c
17 changed files with 607 additions and 1 deletions

20
api/Dockerfile Normal file
View 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"]