mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: add next.js docker image
This commit is contained in:
parent
9321a35302
commit
193b3b289f
2 changed files with 23 additions and 0 deletions
|
|
@ -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
17
front/Dockerfile
Normal 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"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue