forked from mopfel-winrux/urbit-umbrel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 703 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 703 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
# syntax=docker/dockerfile:1
# RPC builder
FROM python:3.9-slim-buster as ship-runner
ARG UID=1000
ARG GID=1000
ARG username=umbrel
RUN apt-get update && apt-get --no-install-recommends install -y curl wget vim ca-certificates gnupg python3-pip procps nginx apt-utils sudo git apache2-utils
COPY install-urbit.sh /tmp/install-urbit.sh
RUN chmod +x /tmp/install-urbit.sh
ENV FLASK_APP=app
ENV FLASK_RUN_HOST=0.0.0.0
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY ./app /tmp/app
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
RUN mkdir /data/
ADD start.sh /usr/bin/start.sh
RUN chmod +x /usr/bin/start.sh
USER $USERNAME
EXPOSE 8090
ENTRYPOINT ["/usr/bin/start.sh"]