Skip to content

Commit 7769579

Browse files
committed
Updated docker file
1 parent 2dbd3de commit 7769579

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ RUN npm run build
3939
FROM python:jessie
4040
MAINTAINER Igor Ilunin <ilunin.igor@gmail.com>
4141

42-
RUN mkdir -p /usr/src/app
42+
RUN mkdir -p /usr/src/app && \
43+
mkdir -p /usr/src/app/api/templates
44+
4345
WORKDIR /usr/src/app
4446

4547
ENV \
@@ -58,11 +60,10 @@ RUN \
5860
VOLUME ["/usr/src/trades", "/usr/src/configs"]
5961

6062
COPY . /usr/src/app
63+
COPY --from=builder /usr/src/app/dist /usr/src/app/api/templates
6164

6265
ENV TZ=America/New_York
6366
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
6467

65-
COPY --from=builder /usr/src/app/dist /usr/src/app/api/templates
66-
6768
EXPOSE 3000
6869
CMD ["python3", "main.py", "api"]

0 commit comments

Comments
 (0)