Containerise bot #107
3 changed files with 30 additions and 0 deletions
11
.dockerignore
Normal file
11
.dockerignore
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
node_modules/
|
||||||
|
tests/
|
||||||
|
coverage/
|
||||||
|
.github/
|
||||||
|
.gitlab/
|
||||||
|
|
||||||
|
.env.template
|
||||||
|
.gitlab-ci.yml
|
||||||
|
jest.config.js
|
||||||
|
jest.setup.js
|
||||||
|
README.md
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# Create app and work directory
|
||||||
|
FROM node:16
|
||||||
|
WORKDIR /vylbot
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
COPY package.json .
|
||||||
|
COPY yarn.lock .
|
||||||
|
RUN yarn install
|
||||||
|
|
||||||
|
# Bundle app source
|
||||||
|
COPY . .
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
# Run the app source
|
||||||
|
CMD [ "yarn", "start" ]
|
4
docker-compose.yml
Normal file
4
docker-compose.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
discord:
|
||||||
|
build: .
|
Loading…
Reference in a new issue