Containerise bot (#107)
This commit is contained in:
parent
97633451ed
commit
de236dfd30
3 changed files with 30 additions and 0 deletions
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" ]
|
Loading…
Add table
Add a link
Reference in a new issue