From 0fe3ccfdd2039d7a94ebaf90e17711171c3b9043 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 10 Apr 2019 11:00:10 -0500 Subject: [PATCH] api: Dockerfile for containerizing the API service. --- api/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 502a90c..a604ad8 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,6 +1,9 @@ -FROM 32707f62ca3b AS build +FROM 063932952339.dkr.ecr.us-west-2.amazonaws.com/nim-alpine 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 @@ -19,3 +22,6 @@ RUN apk -v --update add --no-cache \ COPY --from=build /pm-api/personal_measure_api / COPY personal_measure_api.config.prod.json /personal_measure_api.config.json CMD ["/personal_measure_api", "serve"] + +# TODO: replace the above with something like: +# RUN /db_migrate up && /personal_measure_api serve