-
Notifications
You must be signed in to change notification settings - Fork 116
/
Dockerfile
28 lines (19 loc) · 881 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
FROM --platform=linux/amd64 python:3-buster
RUN apt-get -yyy update && apt-get -yyy install software-properties-common && \
wget -O- https://apt.corretto.aws/corretto.key | apt-key add - && \
add-apt-repository 'deb https://apt.corretto.aws stable main'
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
(dpkg -i google-chrome-stable_current_amd64.deb || apt install -y --fix-broken) && \
rm google-chrome-stable_current_amd64.deb
RUN apt-get -yyy update && apt-get -yyy install java-1.8.0-amazon-corretto-jdk ghostscript
RUN pip install --upgrade pip
RUN pip install anvil-app-server
RUN anvil-app-server || true
RUN mkdir /apps
WORKDIR /apps
RUN mkdir /anvil-data
RUN useradd anvil
RUN chown -R anvil:anvil /anvil-data
USER anvil
ENTRYPOINT ["anvil-app-server", "--data-dir", "/anvil-data"]
CMD ["--app", "MainApp"]