Skip to content

Commit a7e5ffc

Browse files
committed
Merge branch 'main' of github.com:devkevw/codejam2024
2 parents 5ec260b + 5919ae4 commit a7e5ffc

4 files changed

Lines changed: 37 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CodeJam 14 (2024)
1+
# CodeJam 14 Hackathon: 365 Days
22
## About
33
**365 Days** is a digital wellness journal designed to help users log and reflect on their emotional journeys. Available
44
as both a Chrome extension and a webpage, the platform encourages daily emotional tracking and journaling in a simple,

docker-compose.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ services:
77
ports:
88
- "8000:8000"
99

10-
# frontend:
11-
# build:
12-
# context: ./frontend/webpage
13-
# ports:
14-
# - "3000:80"
10+
frontend:
11+
build:
12+
context: ./frontend/webpage
13+
container_name: frontend_container
14+
ports:
15+
- "3000:80"
16+

frontend/webpage/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use Node.js image to build the React app
2+
FROM node:18 AS build
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy the package.json and package-lock.json files
8+
COPY package.json package-lock.json ./
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Copy the rest of the app's code
14+
COPY . .
15+
16+
# Build the app for production
17+
RUN npm run build
18+
19+
# Use NGINX to serve the static files
20+
FROM nginx:alpine
21+
22+
# Copy the build output to NGINX's public directory
23+
COPY --from=build /app/build /usr/share/nginx/html
24+
25+
# Expose port 80
26+
EXPOSE 80
27+
28+
# Start NGINX
29+
CMD ["nginx", "-g", "daemon off;"]

frontend/webpage/README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)