-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile-dev
More file actions
28 lines (20 loc) · 942 Bytes
/
Dockerfile-dev
File metadata and controls
28 lines (20 loc) · 942 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:20@sha256:c11ae157cdd9f8b522d5a65e7f3f5f5c34cf45a8bd883c15e8f2028a2673dec7
RUN apt update -y && apt upgrade -y && apt install -y curl wget bash iputils-ping net-tools dnsutils imagemagick ghostscript
# Allow ImageMagick to read/write PDFs (default Debian policy blocks them).
# Ghostscript ≥ 9.24 already fixes the underlying CVE-2016-3714 class of issues.
RUN find /etc/ImageMagick-* -name policy.xml -exec \
sed -i 's|rights="none" pattern="PDF"|rights="read\|write" pattern="PDF"|' {} \;
# install ember
RUN npm install -g ember-cli
WORKDIR /web
# copy the package files into the image
COPY package*.json ./
# install dev dependencies
RUN npm i --unsafe=true
# copy the code into the image for building
COPY . ./
# run the build script
RUN npm run build
EXPOSE 1338
CMD ["node", "/web/app_server/server.js"]
#CMD ["tail", "-f", "/dev/null"] # uncomment this line to keep a crashing container up for troubleshooting