-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile.arm64
34 lines (25 loc) · 1.16 KB
/
Dockerfile.arm64
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
FROM arm64v8/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 PRISMA_QUERY_ENGINE_BINARY="/usr/src/app/aux-backend/prisma/generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node"
# Specify no sandbox since Deno doesn't support Arm64
ENV SANDBOX_TYPE "none"
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-linux-arm64-openssl-3.0.x.so.node ./aux-backend/prisma/generated/libquery_engine-linux-arm64-openssl-3.0.x.so.node
# HTTP
EXPOSE 3000
EXPOSE 3002
# WebSocket
EXPOSE 4567
CMD [ "npm", "start" ]