Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build command to docker #623

Merged
merged 1 commit into from
Jul 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" ]