forked from ne-sachirou/sifaru_yusin_radical_generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (32 loc) · 870 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
34
35
36
37
38
39
FROM python:3.10-slim
SHELL ["/bin/bash", "-ex", "-o", "pipefail", "-c"]
WORKDIR /mnt
VOLUME /mnt
EXPOSE 5000
ENV PATH=/root/.local/bin:$PATH
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
inotify-tools \
openjdk-17-jre \
rsync \
silversearcher-ag \
&& curl -fsL https://deb.nodesource.com/setup_16.x | bash -ex \
&& apt-get install -y --no-install-recommends \
nodejs \
&& pip install --no-cache-dir --user pipenv \
&& curl -fsSL https://www.antlr.org/download/antlr-4.9-complete.jar > /root/antlr-4.jar \
&& apt-get purge -y \
curl \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY package-lock.json \
package.json \
Pipfile \
Pipfile.lock \
./
RUN pipenv sync -d --pre \
&& npm ci \
&& mv node_modules /tmp
ENTRYPOINT ["./entrypoint.sh"]