docker funny

This commit is contained in:
Lewis Crichton
2023-02-16 22:37:00 +00:00
parent ff03491752
commit 48312a0cc9
4 changed files with 37 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
dist/
node_modules/
.vscode/
.env
+2
View File
@@ -16,3 +16,5 @@ yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
*.tsbuildinfo
redis-data
+13
View File
@@ -0,0 +1,13 @@
FROM node:lts-slim
RUN npm install --global pnpm
WORKDIR /app
ADD package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
ADD . ./
RUN pnpm compile
CMD ["node", "dist/index.js"]
+18
View File
@@ -0,0 +1,18 @@
version: "3.1"
services:
redis:
image: redis:alpine
container_name: redis
restart: always
volumes:
- ./redis-data:/data
backend:
image: vencord/backend
build: .
restart: always
env_file:
- .env
depends_on:
- redis