mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-01-06 04:32:47 +00:00
Added docker
This commit is contained in:
14
.dockerignore
Normal file
14
.dockerignore
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
.dockerignore
|
||||||
|
Dockerfile
|
||||||
|
docker-compose.yml
|
||||||
|
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
.env
|
||||||
|
dist
|
||||||
|
|
||||||
|
config
|
||||||
|
.vscode
|
||||||
|
video.mp4
|
||||||
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
FROM node:18 as build
|
||||||
|
WORKDIR /home/node/app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get install -y ffmpeg
|
||||||
|
|
||||||
|
RUN yarn
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
FROM node:18
|
||||||
|
WORKDIR /home/node/app
|
||||||
|
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get install -y ffmpeg
|
||||||
|
|
||||||
|
COPY --from=build /home/node/app/package.json .
|
||||||
|
COPY --from=build /home/node/app/yarn.lock .
|
||||||
|
|
||||||
|
RUN yarn
|
||||||
|
|
||||||
|
COPY --from=build /home/node/app/dist .
|
||||||
|
CMD ["node", "index.js"]
|
||||||
Reference in New Issue
Block a user