Skip to content

Commit

Permalink
ft(docker):fe server should run in the docker
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceRWIGIMBA committed Jul 10, 2024
1 parent 799850e commit 4bf12d4
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE ${PORT}

CMD ["npm","run","dev"]
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.7'

services:

node:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env.local
ports:
- "${PORT:-3000}:${PORT:-3000}"
container_name: champs-api
6 changes: 6 additions & 0 deletions dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
coverage
.git
.gitignore


120 changes: 120 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4bf12d4

Please sign in to comment.