Skip to content

Commit

Permalink
add wip dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
VisargD committed Jan 5, 2024
1 parent a07e4d8 commit 70e2b97
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Use an official Node.js runtime as a parent image
FROM node:20-alpine

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install app dependencies
RUN npm install

COPY ./ ./

RUN npm run build \
&& rm -rf node_modules \
&& npm install --production

# Bundle app source
COPY . .

# Expose the port your app runs on
EXPOSE 8787

ENTRYPOINT ["npm"]

# Define the command to run your app
CMD ["run", "start:node"]

0 comments on commit 70e2b97

Please sign in to comment.