Skip to content

Commit

Permalink
feat: adding dockerfile file
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-mini authored and pvcnt committed Jan 11, 2024
1 parent d0e82ac commit f55f9bd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use an official Node.js runtime as a parent image
FROM node:20

# Set the working directory in the container to /app
WORKDIR /app

# Copy package.json and package-lock.json into the container at /app
COPY package*.json ./

# Install any needed packages specified in package.json
RUN npm install

# Bundle app source inside Docker image
COPY . .

# Make port 3000 available to the world outside this container
RUN npm run build

FROM nginx:1.23.0-alpine

# Copy the build output to replace the default nginx contents.
COPY --from=0 /app/dist /usr/share/nginx/html

0 comments on commit f55f9bd

Please sign in to comment.