-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
35 lines (26 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM node:18
WORKDIR /usr/src/app
# Setup Global NPM package path
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH "/root/.deno/bin:/home/node/.npm-global/bin:${PATH}"
ENV NODE_ENV production
ENV PRODUCTION 1
ENV DENO_INSTALL "/root/.deno"
ENV PRISMA_QUERY_ENGINE_BINARY="/usr/src/app/aux-backend/prisma/generated/libquery_engine-debian-openssl-3.0.x.so.node"
# Install Deno Version v1.4.0
RUN curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.4.0
RUN npm install -g prisma@^5.7.0
RUN npm install --no-package-lock --no-save deno-vm@^0.12.0
COPY ./src/aux-server/package*.json ./
COPY ./src/aux-server/aux-backend/server/dist ./aux-backend/server/dist/
COPY ./src/aux-server/aux-web/dist ./aux-web/dist/
COPY ./src/aux-server/aux-web/aux-auth/dist ./aux-web/aux-auth/dist/
COPY ./src/aux-server/aux-backend/schemas/auth.prisma ./aux-backend/schemas/auth.prisma
COPY ./src/aux-server/aux-backend/schemas/migrations ./aux-backend/schemas/migrations
COPY ./src/aux-server/aux-backend/prisma/generated/libquery_engine-debian-openssl-3.0.x.so.node ./aux-backend/prisma/generated/libquery_engine-debian-openssl-3.0.x.so.node
# HTTP
EXPOSE 3000
EXPOSE 3002
# WebSocket
EXPOSE 4567
CMD [ "npm", "run", "docker:start" ]