Skip to content
Snippets Groups Projects
Commit 8e1d95bb authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch 'renovate/python-3-x' into 'main'

chore(deps): update python docker tag to v3.11

See merge request stackspin/dashboard!75
parents 0151483d 80769f77
No related branches found
No related tags found
No related merge requests found
FROM python:3.10-slim
RUN apt-get update
RUN apt-get install -y gcc
FROM python:3.11-slim
## make a local directory
RUN mkdir /app
......@@ -9,14 +6,15 @@ RUN mkdir /app
# set "app" as the working directory from which CMD, RUN, ADD references
WORKDIR /app
# copy requirements.txt to /app
ADD requirements.txt .
# pip install the local requirements.txt
RUN pip install -r requirements.txt
# now copy all the files in this directory to /app
COPY . .
# now copy all the files in this directory to /code
ADD . .
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install --no-install-recommends -y gcc libffi-dev libc6-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache-dir -r requirements.txt
# Listen to port 80 at runtime
EXPOSE 5000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment