forked from itteco/iframely
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (16 loc) · 664 Bytes
/
Dockerfile
File metadata and controls
25 lines (16 loc) · 664 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
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
## Utilize docker layer cache
COPY package.json yarn.lock /iframely/
RUN yarn install --pure-lockfile --production
COPY . /iframely
RUN chown -R iframely /iframely/config.local.js || touch /iframely/config.local.js
USER iframely
ENTRYPOINT [ "/iframely/docker/entrypoint.sh" ]