forked from itteco/iframely
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 739 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (18 loc) · 739 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
FROM node:22-alpine
EXPOSE 8061
WORKDIR /iframely
# Create new non-root user
RUN addgroup --system iframelygroup && adduser --system iframely -G iframelygroup
RUN apk add g++ make python3
# This will change the config to `config.<VALUE>.js` and the express server to change its behaviour.
# You should overwrite this on the CLI with `-e NODE_ENV=production`.
ENV NODE_ENV=local
RUN corepack enable
## Utilize docker layer cache
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml /iframely/
COPY patches/ /iframely/patches/
RUN pnpm install --frozen-lockfile --prod
COPY . /iframely
RUN chown -R iframely /iframely/config.local.js || touch /iframely/config.local.js
USER iframely
ENTRYPOINT [ "/iframely/docker/entrypoint.sh" ]