Skip to content

Commit 09708e1

Browse files
committed
Add dockerfile and remove immediate redirect upon closing collab editor
1 parent 1fc5c9f commit 09708e1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

apps/signalling-service/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)