Skip to content

Commit

Permalink
Merge pull request #9 from AstarNetwork/add/docker
Browse files Browse the repository at this point in the history
Create Dockerfile
  • Loading branch information
ehsanhajian committed Mar 27, 2024
2 parents 8f4878d + 818e53a commit 9b627a0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
@@ -0,0 +1,25 @@
# Use an official Node runtime as a parent image
FROM node:20

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json for installing dependencies
COPY package*.json ./

# Install dependencies
# npm ci is used here for a clean, reproducible install based on package-lock.json
RUN npm ci

# Copy the rest of your application's code
COPY . .

# Build your application
RUN npm run build

# Your application will now be built. Adjust the next commands according to how your app is started.
# Expose the port your app runs on
EXPOSE 3000

# Start your application
CMD ["npm", "start"]

0 comments on commit 9b627a0

Please sign in to comment.