-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
26 lines (17 loc) · 752 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
FROM ghcr.io/metricq/metricq-python:v5.2 AS BUILDER
USER root
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
COPY --chown=metricq:metricq . /home/metricq/metricq-source-example
USER metricq
WORKDIR /home/metricq/metricq-source-example
# This is the simplest solution to make sure we only build good packages
# If you don't like this, go ahead and build better github actions / workflows
RUN pip install --user tox
RUN /home/metricq/.local/bin/tox
RUN pip install --user .
FROM ghcr.io/metricq/metricq-python:v5.2
COPY --from=BUILDER --chown=metricq:metricq /home/metricq/.local /home/metricq/.local
ENTRYPOINT [ "/home/metricq/.local/bin/metricq-source-example" ]