Skip to content

Commit

Permalink
test sites
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthi-aot committed May 8, 2024
1 parent b1c812f commit c8baebe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/sites/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ FROM node:16.14.0-alpine
# Set npm cache directory
ENV NPM_CONFIG_CACHE=/home/node/.npm

# NPM Permission Fix
# Create the npm cache directory and set permissions
RUN mkdir -p /home/node/.npm \
&& chown -R 1001:0 /home/node/.npm
&& chown -R 1001:0 /home/node/.npm \
&& chmod -R g=u /home/node/.npm

# Install packages, build, and keep only prod packages
WORKDIR /app
Expand All @@ -18,7 +19,7 @@ COPY package*.json ./
RUN npm ci

# Bundle app source
COPY . ./
COPY . .

# Change ownership of files to non-root user
RUN chown -R 1001:0 /app \
Expand Down

0 comments on commit c8baebe

Please sign in to comment.