-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (30 loc) · 882 Bytes
/
Dockerfile
File metadata and controls
41 lines (30 loc) · 882 Bytes
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
40
41
# 1. build
FROM node:23-alpine AS frontend_builder
ARG GIT_TAG
ARG GIT_BRANCH
ARG GIT_REVISION
ARG APP_HOST
WORKDIR /impresso_frontend
COPY package.json package-lock.json ./
RUN npm install
COPY src ./src
COPY static ./static
COPY public ./public
COPY widget ./widget
COPY institutions-access ./institutions-access
COPY .storybook ./.storybook
COPY .eslintrc.cjs .eslintignore tsconfig.app.json tsconfig.json tsconfig.node.json tsconfig.vitest.json ./
COPY env.d.ts .prettierrc.json index.html ./
COPY vite.config.ts vitest.config.ts ./
COPY .env .env.production ./
ENV PUBLIC_PATH=/app/
ENV NODE_ENV=production
ENV VITE_APP_HOST=${APP_HOST}
ENV VITE_GIT_TAG=${GIT_TAG}
ENV VITE_GIT_BRANCH=${GIT_BRANCH}
ENV VITE_GIT_REVISION=${GIT_REVISION}
RUN npm run build
# 2. copy
FROM busybox:1.36
WORKDIR /impresso-frontend
COPY --from=frontend_builder /impresso_frontend/dist ./