Skip to content

Commit

Permalink
Updates Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Feb 23, 2024
1 parent 20d2e3a commit 58314f2
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 @@ -31,11 +31,12 @@ RUN curl -L https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pa
&& chmod +x /usr/local/bin/pandoc \
&& rm -r pandoc-${PANDOC_VERSION}

# Install your application's dependencies including 'devDependencies' in the Docker container
RUN npm install

# Set environment variables
ENV NODE_PATH=/usr/src/app/app
ENV npm_config_build_from_source=true

# Install your application's dependencies including 'devDependencies' in the Docker container
RUN npm install

# Copy the contents of your application into the container
COPY . .
Expand All @@ -48,6 +49,7 @@ FROM node:16-alpine AS production
# so we need to set them again
ENV NODE_ENV=production
ENV NODE_PATH=/usr/src/app/app
ENV npm_config_build_from_source=true

# Set the working directory in the Docker container
WORKDIR /usr/src/app
Expand Down

0 comments on commit 58314f2

Please sign in to comment.