Skip to content

Commit

Permalink
Up
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsopic committed Sep 6, 2023
1 parent 7354812 commit 68f7927
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# Use an official Python runtime with amd64 architecture
FROM --platform=linux/amd64 python:3.11.1-slim-buster


ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
ENV APP_HOME=/home/app

# User and working dir
RUN mkdir -p $APP_HOME
RUN addgroup -S app && adduser -S -G app app
RUN groupadd -r app && useradd -r -g app app
WORKDIR $APP_HOME

# Needed to build bjoern
RUN apk update && apk add musl-dev gcc libev-dev
# Needed to build bjoern (install build tools)
RUN apt-get update && apt-get install -y \
gcc \
libev-dev \
&& rm -rf /var/lib/apt/lists/*

# Dependencies
# Dependencies
RUN pip install --upgrade pip
COPY requirements.txt $APP_HOME/requirements.txt
RUN pip install --no-cache-dir -r $APP_HOME/requirements.txt
Expand Down

0 comments on commit 68f7927

Please sign in to comment.