-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile_site
14 lines (11 loc) · 925 Bytes
/
Dockerfile_site
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM docker.io/debian:testing-slim AS build
MAINTAINER Jelmer Vernooij <jelmer@jelmer.uk>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt -y update && apt -y install --no-install-recommends auto-apt-proxy && apt -y upgrade && apt satisfy --no-install-recommends -y git cargo rustc libpython3-dev python3-wheel python3-wheel-whl make protobuf-compiler python3-setuptools python3-setuptools-rust ca-certificates python3-pip libgpgme-dev swig rustc cargo gcc mypy-protobuf libssl-dev pkg-config libtdb-dev libclang-dev python3-gpg
COPY . /code
RUN pip3 install --break-system-packages --upgrade "/code[gcp]" && rm -rf /code
EXPOSE 8082
# TODO: config
# TODO: service discovery
RUN apt update && apt -y install --no-install-recommends libjs-jquery-datatables libjs-chart.js libjs-jquery libjs-jquery-datatables libjs-moment libjs-jquery-typeahead
ENTRYPOINT ["python3", "-m", "janitor.site.serve", "--port=8082", "--host=0.0.0.0"]