Skip to content

Commit

Permalink
Made the docker buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoFidjeland committed Apr 7, 2024
1 parent 6e7e1af commit 5d68e91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.env
node_modules
client/node_modules
server/node_modules
server/.env
npm-debug.log
client
server
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ COPY server/package*.json ./
RUN npm ci --only=production
COPY server/ .
# Copy the built React app from the previous stage
COPY --from=client-builder /usr/src/client/build ./public
COPY --from=client-builder /usr/src/client/build /usr/src/client/build

# Expose the port that the server is running on
EXPOSE 3000

# Specify the command to run the server
CMD ["node", "server.js"]
CMD ["node", "server.js"]

0 comments on commit 5d68e91

Please sign in to comment.