Skip to content

Commit

Permalink
feat(Dockerfile): Add missing newline at end of file
Browse files Browse the repository at this point in the history
Add a newline at the end of the Dockerfile to ensure proper formatting and consistency. This change is necessary to adhere to best practices and maintain code readability.
feat(Dockerfile): Add missing newline at end of file

Add a newline at the end of the Dockerfile to ensure proper formatting and consistency. This change is necessary to adhere to best practices and maintain code readability.
  • Loading branch information
BillChirico committed Nov 6, 2023
1 parent d395a4c commit 53ae83e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM node:lts-alpine AS deps
WORKDIR /opt/app
# Copy package.json and package-lock.json to the working directory
COPY package.json package-lock.json ./
COPY . .
# Install production dependencies only
RUN npm ci --only=production

Expand All @@ -15,7 +16,6 @@ WORKDIR /opt/app
# Copy node_modules from the "deps" stage
COPY package.json package-lock.json ./
COPY --from=deps /opt/app/node_modules ./node_modules
COPY . .
# Build the application
RUN npm run build

Expand All @@ -28,7 +28,6 @@ ENV NODE_ENV=production
# Copy necessary files from the "builder" stage
EXPOSE 5000
COPY --from=builder /opt/app/build ./build
WORKDIR /opt/app/build
COPY package.json package-lock.json ./
# Define the command to run the application
CMD ["sh", "-l", "-c", "npm run serve"]

0 comments on commit 53ae83e

Please sign in to comment.