chore: add next.js docker image

This commit is contained in:
swve 2022-12-22 22:38:03 +01:00
parent 9321a35302
commit 193b3b289f
2 changed files with 23 additions and 0 deletions

View file

@ -6,6 +6,12 @@ services:
- "1338:80" - "1338:80"
volumes: volumes:
- .:/usr/learnhouse - .:/usr/learnhouse
frontend:
build: ./front
ports:
- "3000:3000"
volumes:
- ./front:/usr/learnhouse/front
mongo: mongo:
image: mongo:5.0 image: mongo:5.0
restart: always restart: always

17
front/Dockerfile Normal file
View file

@ -0,0 +1,17 @@
#
FROM node:16-alpine
#
WORKDIR /usr/learnhouse/front
#
COPY package.json /usr/learnhouse/front/package.json
#
RUN npm install
#
COPY ./ /usr/learnhouse
#
CMD ["npm", "run", "dev"]