diff --git a/build/api/Dockerfile b/build/api/Dockerfile new file mode 100644 index 0000000..9b4b89b --- /dev/null +++ b/build/api/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:18.04 + +RUN apt-get update -yqq \ + && apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + build-essential \ + ; + +ENV PATH $HOME/.nimble/bin:$PATH +RUN curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh +RUN sh init.sh -y diff --git a/docker-compose-ci.yml b/docker-compose-ci.yml new file mode 100644 index 0000000..8a188ab --- /dev/null +++ b/docker-compose-ci.yml @@ -0,0 +1,7 @@ +version: '3.7' + +services: + app: + build: + context: . + dockerfile: ./build/api/Dockerfile diff --git a/dockerfiles/api/Dockerfile b/dockerfiles/api/Dockerfile deleted file mode 100644 index dc2eeea..0000000 --- a/dockerfiles/api/Dockerfile +++ /dev/null @@ -1 +0,0 @@ -FROM nimlang/nim