Skip to content

Commit

Permalink
changed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
manzil-infinity180 committed Nov 25, 2024
1 parent 5636cbf commit 824ff3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ WORKDIR /dumpstore/backend

# Changes in package* . json file
COPY package*.json ./
RUN rm -rf node_modules package-lock.json

# Install dependencies using npm ci for faster, consistent installs
RUN npm install

# Add node_modules/.bin to PATH for easier access to executables
# Add node_modules/.bin to PATH for easier access to executables
ENV PATH /dumpstore/backend/node_modules/.bin:$PATH

# Copy all changes
Expand All @@ -19,7 +20,7 @@ COPY . .
# Compile TypeScript to JavaScript
RUN npx tsc

# expose the app on port 9009
# expose the app on port 3008
EXPOSE 3008

# Start the server
Expand Down

0 comments on commit 824ff3d

Please sign in to comment.