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 3f4256f commit 8408f61
Show file tree
Hide file tree
Showing 3 changed files with 32 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


0 comments on commit 8408f61

Please sign in to comment.