-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
34 lines (28 loc) · 821 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
28
29
30
31
32
33
34
# syntax=docker/dockerfile:1
FROM python:3.9-slim-bullseye AS test
LABEL org.opencontainers.image.authors="Peter.Adrichem@gmail.com"
LABEL description="Xul Dockerfile"
LABEL version="2.0"
# Environment.
ENV \
PYTHONUNBUFFERED=1 \
VIRTUAL_ENV=/opt/venv \
PATH="/opt/venv/bin:${PATH}"
# System packages.
RUN \
--mount=type=cache,target=/var/cache/apt \
rm -f /etc/apt/apt.conf.d/docker-clean \
&& apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install --no-install-recommends -y \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf/*-old
# Recent pip and wheel.
RUN pip install --upgrade pip wheel
# Create workdir
WORKDIR /app
# Install Xul package.
RUN \
--mount=target=. \
python -m venv /opt/venv \
&& pip install -e .[test]