Skip to content

Commit

Permalink
Co-authored-by: Mackenna Hale <mmh9xx@users.noreply.github.com>
Browse files Browse the repository at this point in the history
Co-authored-by: Blake Miller <blake-a-miller@users.noreply.github.com>
  • Loading branch information
haleyw1237 committed Nov 30, 2023
1 parent 0f74224 commit d0a99e1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ RUN npm install
COPY . .

# Expose the port the frontend runs on
EXPOSE 3100
#EXPOSE 3100
EXPOSE 80
EXPOSE 443

# Command to run application
CMD ["npm", "start"]
24 changes: 24 additions & 0 deletions frontend/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '24.0.5'

services:
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: pantryprofiler-ui
tty: true
expose:
- 80
- 443
ports:
- '3000:80'
- '3100:443'
networks:
- default
volumes:
- .:/frontend
- /frontend/node_modules
#environment:
# Define your environment variables here, if any
# e.g., NODE_ENV: production
restart: unless-stopped

0 comments on commit d0a99e1

Please sign in to comment.