From 197d17182cc9dba0d5a680118d09954fef16f348 Mon Sep 17 00:00:00 2001 From: youichiro Date: Fri, 2 Jul 2021 08:30:31 +0900 Subject: [PATCH] move later to copy files in Dockerfile.prod --- backend/Dockerfile.prod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile.prod b/backend/Dockerfile.prod index e75ee03b..c4bbd3b2 100644 --- a/backend/Dockerfile.prod +++ b/backend/Dockerfile.prod @@ -11,7 +11,6 @@ ENV PYTHONUNBUFFERED 1 RUN groupadd -g 61000 doccano \ && useradd -g 61000 -l -M -s /bin/false -u 61000 doccano -COPY --chown=doccano:doccano ./backend/ /backend/ COPY --chown=doccano:doccano ./Pipfile* /backend/ # hadolint ignore=DL3013 @@ -33,6 +32,8 @@ RUN mkdir -p /backend/staticfiles \ && mkdir -p /backend/media \ && chown -R doccano:doccano /backend/ +COPY --chown=doccano:doccano ./backend/ /backend/ + USER doccano:doccano VOLUME /backend/staticfiles