forked from Tietokilta/ilmomasiina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
39 lines (28 loc) · 1.34 KB
/
Dockerfile.dev
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
35
36
37
38
39
# This Dockerfile is intended for development use only.
# Only the files required to bootstrap the project will be copied to the container.
# Node modules will be installed at the build phase and included in the container image.
# Sources and other files are intended to be provided using bind mounts.
FROM node:16-alpine
WORKDIR /opt/ilmomasiina
# Copy static resources from the repository root
COPY .eslint* package.json pnpm-*.yaml ./
# Copy static resources from each package
COPY packages/ilmomasiina-frontend/package.json \
packages/ilmomasiina-frontend/tsconfig.json \
packages/ilmomasiina-frontend/.eslint* \
packages/ilmomasiina-frontend/
COPY packages/ilmomasiina-components/package.json \
packages/ilmomasiina-components/tsconfig.json \
packages/ilmomasiina-components/.eslint* \
packages/ilmomasiina-components/
COPY packages/ilmomasiina-backend/package.json \
packages/ilmomasiina-backend/tsconfig.json \
packages/ilmomasiina-backend/.eslint* \
packages/ilmomasiina-backend/
COPY packages/ilmomasiina-models/package.json \
packages/ilmomasiina-models/tsconfig.json \
packages/ilmomasiina-models/
ENV NODE_ENV=development
ENV HOST=0.0.0.0
# Install dependencies (we're running as root, so the postinstall script doesn't run automatically)
RUN npm install -g pnpm@8 && pnpm install --frozen-lockfile