Skip to content

Commit

Permalink
chore(docker): 🫙 add an data direcory for applications
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Nov 4, 2023
1 parent c37d588 commit 661c33c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions infra/Dockerfile.service
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,11 @@ RUN adduser --system --uid 1001 runuser
USER runuser

COPY --from=installer /app .

# Create data directory and set permissions
RUN ls -la
RUN ls -la $SERVICE_PATH
RUN mkdir $SERVICE_PATH/data
RUN chown runuser:nodejs $SERVICE_PATH/data

CMD cd $SERVICE_PATH && pnpm start

0 comments on commit 661c33c

Please sign in to comment.