mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
This commit is contained in:
parent
ec56333a3a
commit
8dae2a1dc5
10
.docker-compose.yml
Normal file
10
.docker-compose.yml
Normal 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
7
.dockerignore
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.next/
|
||||||
|
node_modules/
|
||||||
|
Dockerfile
|
||||||
|
yarn-error.log
|
||||||
|
.dockerignore
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
19
Dockerfile
Normal file
19
Dockerfile
Normal 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"
|
||||||
@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start -p 4000",
|
"start": "next start",
|
||||||
"lint": "eslint --ext ts,tsx .",
|
"lint": "eslint --ext ts,tsx .",
|
||||||
"lint:fix": "eslint --ext ts,tsx . --fix"
|
"lint:fix": "eslint --ext ts,tsx . --fix"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user