From d4415368bae270736109f1d2eba97040235b66fb Mon Sep 17 00:00:00 2001 From: Joao Daher Date: Tue, 16 Mar 2021 16:18:27 -0300 Subject: [PATCH] Simplify Dockerfile --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index be71d8a..735208d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -ARG RUNTIME=3.9-slim -FROM python:$RUNTIME +ARG PYTHON_VERSION=3.9-slim +FROM python:$PYTHON_VERSION # Install OS dependencies RUN apt update -y -RUN apt install -y git python3-dev build-essential libffi-dev libssl-dev libtool automake +RUN apt install -y git build-essential # Point to app folder ARG APP_HOME=/app @@ -28,5 +28,6 @@ RUN poetry install --no-dev --no-root # Copy local code to the container image. COPY . . -# Prepare image entry-point -CMD exec make run-server +# Prepare image entrypoint +WORKDIR $APP_HOME/flamingo +ENTRYPOINT python main.py