Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast authored Jan 9, 2024
1 parent 22f2e79 commit cd71e44
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ WORKDIR /app
RUN yarn install

# Copy package files and install dependencies
COPY package*.json ./
RUN yarn install --legacy-peer-deps
COPY package.json .
COPY yarn.lock .


# Copy the rest of the application code
COPY . .

# Run the build command using Yarn
RUN yarn build

EXPOSE 5173
EXPOSE 5173/tcp

# Set the command to start the server
CMD ["yarn", "serve", "-s", "build"]
CMD ["yarn", “dev”]

0 comments on commit cd71e44

Please sign in to comment.