Added docker files for server
This commit is contained in:
parent
2448e8d2bb
commit
a6996564ce
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM node:16-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY next.config.js ./next.config.js
|
||||||
|
COPY components ./components
|
||||||
|
COPY pages ./pages
|
||||||
|
COPY public ./public
|
||||||
|
COPY styles ./styles
|
||||||
|
|
||||||
|
CMD ["npm","run","dev"]
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: docker-nextjs-dev
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- ./pages:/app/pages
|
||||||
|
- ./public:/app/public
|
||||||
|
- ./styles:/app/styles
|
||||||
|
- ./components:/app/components
|
Reference in New Issue
Block a user