Added docker files for server

This commit is contained in:
Caretaker0699 2023-05-16 15:08:37 -07:00
parent 2448e8d2bb
commit a6996564ce
2 changed files with 25 additions and 0 deletions

12
Dockerfile Normal file
View 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
View 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