mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
Align admin production and development images with the repository's committed npm workspace and lockfile. This ensures shared and Expo-linked dependencies are installed before the admin build runs.
17 lines
252 B
Docker
17 lines
252 B
Docker
FROM node:20-bookworm-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install the complete npm workspace from its committed lockfile.
|
|
COPY . .
|
|
RUN npm ci
|
|
|
|
# Build shared package
|
|
RUN npm run build -w @sauci/shared
|
|
|
|
WORKDIR /app/apps/admin
|
|
|
|
EXPOSE 3001
|
|
|
|
CMD ["npm", "run", "dev"]
|