Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthi-aot committed May 7, 2024
1 parent 677ca2c commit e4321cb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions backend/sites/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FROM node:16.14.0-alpine
ENV NPM_CONFIG_CACHE=/home/node/.npm

# NPM Permission Fix
RUN mkdir -p /.npm \
&& chown -R 1001:0 /.npm
RUN mkdir -p /home/node/.npm \
&& chown -R 1001:0 /home/node/.npm

# Install packages, build, and keep only prod packages
WORKDIR /app
Expand All @@ -30,10 +30,6 @@ USER 1001
# Build the application
RUN npm run build

# Ensure ownership of .npm folder
RUN mkdir -p /home/node/.npm \
&& chown -R 1001:0 /home/node/.npm

# Expose port
EXPOSE 4007

Expand Down

0 comments on commit e4321cb

Please sign in to comment.