Skip to content

Commit

Permalink
Add build step and specify command for running SSR in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AtilMohAmine committed Feb 12, 2024
1 parent 824deec commit 25a4bb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ RUN npm install
# Copy the rest of the client code to the container
COPY . .

# Build
RUN npm run build

# Expose the port the client runs on
EXPOSE 3000

# Command to run the client
CMD ["npm", "start"]
CMD ["npm", "run", "ssr"]

0 comments on commit 25a4bb1

Please sign in to comment.