Skip to content

Commit 1fc3f20

Browse files
author
Daniel Schmidt
committed
Bugfix: Artifacts scaffolding must occur in the root-run section
1 parent fa29136 commit 1fc3f20

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
1414
# Setup the application user and group
1515
RUN addgroup -Sg 40023 waam && \
1616
adduser -Su 40023 -G waam waam && \
17-
install -d -o waam -g waam /usr/src/app
17+
install -d -o waam -g waam /usr/src/app && \
18+
mkdir -p /opt/app/artifacts && \
19+
chown -R waam:waam /opt/app
1820

1921
# Subsequent commands run relative to this directory.
2022
WORKDIR /usr/src/app
@@ -49,7 +51,4 @@ ENTRYPOINT ["npm"]
4951
# The default command runs the server.
5052
CMD ["run", "server"]
5153

52-
# Necessary for the GitHub Actions workflow
5354
ENV PATH=/usr/src/app/bin:$PATH
54-
RUN mkdir -p /opt/app/artifacts && \
55-
chown -R waam:waam /opt/app

0 commit comments

Comments
 (0)