-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
33 lines (26 loc) · 668 Bytes
/
Dockerfile
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
FROM node:lts-alpine
VOLUME [ "/data" ]
ENTRYPOINT [ "/home/excalidraw/bin/run" ]
RUN addgroup -S excalidraw && adduser -S excalidraw -G excalidraw
RUN apk add --no-cache \
python \
g++ \
build-base \
cairo-dev \
jpeg-dev \
pango-dev \
musl-dev \
giflib-dev \
pixman-dev \
pangomm-dev \
libjpeg-turbo-dev \
freetype-dev
USER excalidraw
WORKDIR /home/excalidraw
COPY --chown=excalidraw:excalidraw package.json yarn.lock ./
RUN yarn
COPY --chown=excalidraw:excalidraw .npmignore tsconfig.json ./
COPY --chown=excalidraw:excalidraw bin/ bin
COPY --chown=excalidraw:excalidraw src/ src
RUN yarn prepack
WORKDIR /data