Skip to content

Commit

Permalink
get rid of react and make templating work
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroMartinSteenstrup committed Apr 14, 2024
1 parent 05bc912 commit 4fcd5b4
Show file tree
Hide file tree
Showing 22 changed files with 1,316 additions and 18,799 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ logs
**/*.backup.*
**/*.back.*

portfolio/build

node_modules
portfolio/node_modules
portfolio/src/backend/node_modules
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ COPY scripts/ /app/scripts
COPY src/ /app/src

# install app dependencies
COPY package*.json .
COPY src/package*.json .

WORKDIR /app/src

RUN npm install
RUN npm run build
# RUN npm run build

# # start app
# CMD ["npm", "start"]
CMD ["node", "index.js"]

# production environment
FROM nginx:stable-alpine as prod
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: '3.8'
services:

sample:
env_file:
- .env.docker
container_name: sample
build:
context: ./portfolio
Expand All @@ -14,11 +16,14 @@ services:
# comment out until here
ports:
- 3001:80
- 3002:3001
networks:
- portfolio
environment:
- CHOKIDAR_USEPOLLING=true
database:
env_file:
- .env.docker
image: postgres:16.2
environment:
# using an .env file, but leaving defaults for easier first time run
Expand Down
23 changes: 0 additions & 23 deletions portfolio/.gitignore

This file was deleted.

70 changes: 0 additions & 70 deletions portfolio/README.md

This file was deleted.

Loading

0 comments on commit 4fcd5b4

Please sign in to comment.