forked from scratchfoundation/scratch-editor
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 866 Bytes
/
Dockerfile
File metadata and controls
39 lines (32 loc) · 866 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
FROM node:24-bookworm-slim
LABEL maintainer="Kouji Takao"
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
RUN \
set -eux \
&& apt update \
&& apt install -y --no-install-recommends \
build-essential \
ca-certificates \
git \
curl \
less \
lv \
vim \
jq \
chromium \
chromium-driver \
libgl1-mesa-dri \
libglapi-mesa \
libosmesa6 \
fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1
# Install Playwright and its dependencies
RUN npx playwright install chromium --with-deps
# Link chromium to google-chrome just in case
RUN ln -s /usr/bin/chromium /usr/bin/google-chrome
ENV NODE_OPTIONS="--max-old-space-size=4000"
EXPOSE 8601
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["npm", "start"]