mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 17:50:21 +08:00
cleanup dockerfile
This commit is contained in:
parent
012837b863
commit
1fe887a71e
20
Dockerfile
20
Dockerfile
@ -1,30 +1,24 @@
|
|||||||
FROM debian:bullseye-slim AS base
|
FROM debian:bullseye-slim AS base
|
||||||
|
|
||||||
# Inspired by https://github.com/Hudrolax/uc-docker-alpine/
|
ARG GITHUB_BUILD=false \
|
||||||
|
|
||||||
|
|
||||||
ARG \
|
|
||||||
GITHUB_BUILD=false \
|
|
||||||
VERSION
|
VERSION
|
||||||
ENV \
|
|
||||||
GITHUB_BUILD=${GITHUB_BUILD}\
|
|
||||||
VERSION=${VERSION}
|
|
||||||
|
|
||||||
ENV HOME=/root
|
ENV HOME=/root \
|
||||||
ENV \
|
GITHUB_BUILD=${GITHUB_BUILD}\
|
||||||
|
VERSION=${VERSION}\
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
# prevents python creating .pyc files
|
# prevents python creating .pyc files
|
||||||
PYTHONDONTWRITEBYTECODE=1 \
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PATH="${HOME}/.local/bin:$PATH" \
|
|
||||||
DISPLAY=:0
|
DISPLAY=:0
|
||||||
|
ENV PATH="${HOME}/.local/bin:$PATH"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt update &&\
|
RUN apt update &&\
|
||||||
apt install -y --no-install-recommends --no-install-suggests xauth xvfb scrot curl chromium chromium-driver ca-certificates
|
apt install -y --no-install-recommends --no-install-suggests xauth xvfb scrot wget chromium chromium-driver
|
||||||
|
|
||||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
RUN wget -qO- https://astral.sh/uv/install.sh | sh
|
||||||
COPY pyproject.toml uv.lock ./
|
COPY pyproject.toml uv.lock ./
|
||||||
RUN uv sync
|
RUN uv sync
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user