Skip to content

Commit

Permalink
Correct Docker volume declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed Aug 31, 2024
1 parent af672ba commit 5e1f5f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ RUN yarn install --immutable
COPY tsconfig.json ./
COPY src ./src
RUN yarn build

# Runtime data
COPY data ./data

VOLUME state
# State
RUN mkdir state && chown node:node state
VOLUME /usr/src/app/state

# Execution
USER node
CMD yarn start

0 comments on commit 5e1f5f1

Please sign in to comment.