Skip to content

Commit

Permalink
DockerFile 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoYeonii committed Aug 5, 2023
1 parent 055e216 commit f8438d8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# https://hub.docker.com/_/node
FROM node:16-slim

# Create and change to the app directory.
WORKDIR /usr/src/app

# Copy application dependency manifests to the container image.
# Copying this first prevents re-running npm install on every code change.
COPY package*.json ./

# Install production dependencies and build
RUN yarn install
RUN yarn build

# Copy local code to the container image.
COPY . .

# Run the web service on container startup.
CMD [ "yarn", "start" ]

0 comments on commit f8438d8

Please sign in to comment.