Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchayan721 committed Aug 9, 2023
1 parent 722052a commit 1d07476
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
FROM node:14
# Use the official Node.js image
FROM node:alpine

# Copy everything from the current directory into the Docker image
COPY . /app

# Set working directory inside the container
# Set the working directory
WORKDIR /app

# Copy package.json and yarn.lock
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn install

# Compile TypeScript
# Copy the rest of the app
COPY . .

# Build the app
RUN yarn build

# Start command as defined in package.json
# Expose the port the app runs on
EXPOSE 3000

# Command to run the app
CMD ["yarn", "start"]

0 comments on commit 1d07476

Please sign in to comment.