We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc5c9f commit 09708e1Copy full SHA for 09708e1
apps/signalling-service/Dockerfile
@@ -0,0 +1,21 @@
1
+FROM node:18-alpine AS base
2
+
3
+# Install dependencies only when needed
4
+FROM base AS deps
5
+# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
6
+RUN apk add --no-cache libc6-compat
7
+WORKDIR /app
8
9
+COPY package*.json pnpm-lock.yaml* ./
10
+RUN \
11
+ if [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
12
+ else echo "Lockfile not found." && exit 1; \
13
+ fi
14
15
+COPY . .
16
17
+# Expose port 3001 so it can be mapped by Docker daemon.
18
+EXPOSE 4444
19
20
+# Define the command to run your app using CMD which defines your runtime.
21
+CMD [ "node", "server.js" ]
0 commit comments