-
Notifications
You must be signed in to change notification settings - Fork 479
/
Dockerfile
44 lines (33 loc) · 1.19 KB
/
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
40
41
42
43
44
FROM node:lts as node-build
WORKDIR /root
COPY . .
RUN cd frontend && npm install
RUN make assets-build
FROM ubuntu:focal as python-build
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Los_Angeles
RUN apt-get update && \
apt-get install -y python3 python3-distutils libpython3-dev curl g++ gcc libxslt-dev make libcurl4-openssl-dev build-essential libssl-dev && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python get-pip.py && \
rm get-pip.py && \
# Feature-parity with node.js base images.
apt-get install -y --no-install-recommends git openssh-client && \
# clean apt cache
rm -rf /var/lib/apt/lists/* && \
# Create the pwuser
adduser pwuser
WORKDIR /app
COPY --from=node-build /root/scylla/assets ./scylla/assets
COPY requirements.txt .
RUN pip3 install -r requirements.txt
RUN python3 -m playwright install --with-deps chromium
COPY . .
RUN python3 setup.py install
RUN mkdir -p /var/www/scylla
VOLUME /var/www/scylla
RUN python3 -m playwright install chromium --with-deps
EXPOSE 8899
EXPOSE 8081
CMD python3 -m scylla --db-path /var/www/scylla/scylla.db