Skip to content

Create Dockerfile.Yaml #43

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
13 changes: 13 additions & 0 deletions .github/Dockerfile.Yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:14
# Set the working directory
WORKDIR /app
# Copy the package.json and package-lock.json (if available) to the working directory
COPY package*.json ./
# Install the dependencies
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Expose the port the app runs on (assuming your app runs on port 3000)
EXPOSE 3000
# Define the command to run your app
CMD ["npm", "start"]