There was an error while loading. Please reload this page.
1 parent 7270f8a commit b7be944Copy full SHA for b7be944
1 file changed
Dockerfile
@@ -1,19 +1,18 @@
1
FROM node:20-alpine
2
3
+# Copy shared to root first, before setting WORKDIR
4
+COPY shared/ /shared/
5
+
6
+# Now set up the app directory
7
WORKDIR /app
8
-# Copy server package files and install dependencies
9
+# Copy server package files and install dependencies
10
COPY server/package*.json ./
11
RUN npm install --production
12
13
# Copy server source code
14
COPY server/ ./
15
-# Copy shared INTO parent directory so ../shared works
-# This creates /shared (parent of /app)
-RUN mkdir -p ../shared
-COPY shared/ ../shared/
16
-
17
# Environment
18
ENV NODE_ENV=production
19
EXPOSE 5000
0 commit comments