Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyarbij committed Aug 20, 2023
1 parent ce5e0d4 commit f1c6d85
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
# Base image: https://hub.docker.com/_/python
FROM python:3.12-rc
FROM python:3.12-rc-slim

# Prevents Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1

# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1

# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
libffi-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*

# Install pip requirements
COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt
RUN python -m pip install -r requirements.txt

WORKDIR /app
COPY . /app
Expand All @@ -28,4 +21,4 @@ USER plexist
# During debugging, this entry point will be overridden.
CMD ["python", "plexist/plexist.py"]

# docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t gyarbij/plexist:<tag> --push .
# docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t gyarbij/plexist:<tag> --push .

0 comments on commit f1c6d85

Please sign in to comment.