api: Clean up Dockerfile, rebase onto Nim 1.4.8.

This commit is contained in:
Jonathan Bernard 2021-07-03 01:30:26 -05:00
parent 1449e1ffdd
commit 20e0a0b09e

View File

@ -1,21 +1,16 @@
FROM 063932952339.dkr.ecr.us-west-2.amazonaws.com/nim-alpine AS build
FROM 063932952339.dkr.ecr.us-west-2.amazonaws.com/alpine-nim:nim-1.4.8 AS build
MAINTAINER jonathan@jdbernard.com
# TODO: install db_migrate so we can use it below
# RUN nimble install https://git.jdb-labs.com/jdb/db-migrate.git
#RUN apt-get install -y libssl-dev
COPY personal_measure_api.nimble /pm-api/
COPY src /pm-api/src
WORKDIR /pm-api
RUN nimble build -y
FROM alpine
#RUN apt-get install -y postgresql-client
RUN apk -v --update add --no-cache \
ca-certificates \
libressl2.7-libssl \
libressl2.7-libcrypto \
libcrypto1.1 \
libssl1.1 \
pcre \
postgresql-client