원더 2021-01-12 18:49:40 +09:00
parent ec56333a3a
commit 8dae2a1dc5
4 changed files with 37 additions and 1 deletions

10
.docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: "3"
services:
koreanbots:
ports:
- 4000:3000
- 3306:3306
dockerfile: Dockerfile
env_file:
- .env.production.local

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
.next/
node_modules/
Dockerfile
yarn-error.log
.dockerignore
.git
.gitignore

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM node:node:14.15-alpine
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Installing dependencies
COPY package*.json /usr/src/app/
COPY yarn.lock /usr/src/app/
RUN yarn install
# Copying source files
COPY . /usr/src/app
# Building app
RUN yarn build
# Running the app
CMD "yarn" "start"

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start -p 4000",
"start": "next start",
"lint": "eslint --ext ts,tsx .",
"lint:fix": "eslint --ext ts,tsx . --fix"
},