Skip to content

Commit

Permalink
Add build command to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Jul 29, 2023
1 parent bb84b4d commit f91136f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Node version matching the version declared in the package.json
# Node version matching the version declared in the package.json
FROM node:16-slim

# Update O.S.
RUN apt-get update && apt-get upgrade -y
RUN apt-get update && apt-get upgrade -y

# Install required O.S. packages
RUN apt-get install -y git python make g++
Expand All @@ -25,8 +25,11 @@ RUN yarn
# Bundle app source
COPY --chown=node:node . .

# Set the container port
# Set the container port
EXPOSE 8080

# Build the app
RUN yarn run build

# Start the aplication
CMD ["yarn", "run", "start" ]

0 comments on commit f91136f

Please sign in to comment.