Skip to content

Commit 43e4965

Browse files
authored
Merge pull request #175 from DefangLabs/unify-python
made all teh images python:3.11-slim as that is the latest
2 parents 121953f + 0fc9774 commit 43e4965

File tree

18 files changed

+50
-50
lines changed

18 files changed

+50
-50
lines changed

samples/django-postgres/app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.12.2
2+
FROM python:3.11-slim
33

44
# Set environment variables
55
ENV PYTHONDONTWRITEBYTECODE 1
@@ -19,4 +19,4 @@ COPY . /code/
1919
RUN python manage.py collectstatic --noinput
2020

2121
# Start server
22-
CMD python manage.py migrate && python manage.py createsuperuser && gunicorn crm_platform.wsgi:application --bind 0.0.0.0:8000
22+
CMD python manage.py migrate && python manage.py createsuperuser && gunicorn crm_platform.wsgi:application --bind 0.0.0.0:8000

samples/django/app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.10.4-slim-buster
2+
FROM python:3.11-slim
33

44
# Set environment variables
55
ENV PYTHONDONTWRITEBYTECODE 1
@@ -19,4 +19,4 @@ COPY . /code/
1919
RUN python manage.py collectstatic --noinput
2020

2121
# Start server
22-
CMD python manage.py migrate && python manage.py createsuperauto && gunicorn defang_sample.wsgi:application --bind 0.0.0.0:8000
22+
CMD python manage.py migrate && python manage.py createsuperauto && gunicorn defang_sample.wsgi:application --bind 0.0.0.0:8000

samples/fastapi-postgres/fastapi/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.9-slim
2+
FROM python:3.11-slim
33

44
# Set the working directory to /app
55
WORKDIR /app
66

77
# Install required C++11 libraries and ca-certificates
88
RUN apt-get update \
99
&& apt-get install -y \
10-
build-essential \
11-
python3-dev \
12-
ca-certificates \
10+
build-essential \
11+
python3-dev \
12+
ca-certificates \
1313
&& rm -rf /var/lib/apt/lists/*
1414

1515
# Install any needed packages specified in requirements.txt

samples/fastapi/fastapi/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.9-slim
2+
FROM python:3.11-slim
33

44
# Set the working directory to /app
55
WORKDIR /app
66

77
# Install required C++11 libraries and ca-certificates
88
RUN apt-get update \
99
&& apt-get install -y \
10-
build-essential \
11-
python3-dev \
12-
ca-certificates \
10+
build-essential \
11+
python3-dev \
12+
ca-certificates \
1313
&& rm -rf /var/lib/apt/lists/*
1414

1515
# Install any needed packages specified in requirements.txt

samples/flask/flask/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Python runtime as a base image
2-
FROM python:3.9-slim
2+
FROM python:3.11-slim
33

44
# Set the working directory to /app
55
WORKDIR /app

samples/golang-http-form/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Go runtime as a parent image
2-
FROM golang:1.20-alpine as builder
2+
FROM golang:1.20-slim as builder
33

44
# Set the working directory in the builder container
55
WORKDIR /src

samples/golang-mongodb-atlas/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Start from the official Go image.
2-
FROM golang:1.19-alpine as builder
2+
FROM golang:1.20-slim as builder
33

44
# Set the Current Working Directory inside the container
55
WORKDIR /app

samples/golang-openai/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Go runtime as a parent image
2-
FROM golang:1.20-alpine as builder
2+
FROM golang:1.20-slim as builder
33

44
# Set the working directory in the builder container
55
WORKDIR /src

samples/golang-rest-api/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Go runtime as a parent image
2-
FROM golang:1.20-alpine as builder
2+
FROM golang:1.20-slim as builder
33

44
# Set the working directory in the builder container
55
WORKDIR /src

samples/golang-s3/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Go runtime as a parent image
2-
FROM golang:1.20-alpine as builder
2+
FROM golang:1.20-slim as builder
33

44
# Set the working directory in the builder container
55
WORKDIR /src

0 commit comments

Comments
 (0)