We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e19bed commit fa6ad1dCopy full SHA for fa6ad1d
Dockerfile
@@ -7,16 +7,18 @@ RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
7
ENV PYTHONUNBUFFERED=1 ENVIRONMENT=pre APP_HOME=/microservice/
8
ENV DATABASE_DIR=database
9
ENV CONFIGMAP_FILE="$APP_HOME"config-docker.yml
10
-RUN mkdir $APP_HOME && adduser -S -D -H python
11
+RUN mkdir $APP_HOME && adduser -S -D -H python
12
RUN chown -R python $APP_HOME
13
WORKDIR $APP_HOME
14
+
15
+ADD requirement*.txt $APP_HOME
16
+RUN pip install --upgrade pip
17
+RUN pip install -r requirements-docker.txt
18
19
ADD . $APP_HOME
20
RUN mkdir $DATABASE_DIR
21
RUN chmod 777 $DATABASE_DIR
-RUN ls -lah
-RUN pip install --upgrade pip
-RUN pip install -r requirements-docker.txt
22
23
EXPOSE 5000
24
USER python
0 commit comments