Skip to content

Commit

Permalink
Move to bullseye
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Shishkov committed Sep 27, 2024
1 parent 3b509d1 commit c9f9380
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
20 changes: 15 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base Python image
FROM python:3.9.1-buster
FROM python:3.9.1-bullseye

# Update system and install backup utilities
COPY back-end/docker/image/install-postgres-client.sh /
Expand All @@ -9,10 +9,6 @@ RUN sh install-postgres-client.sh
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt -y install nodejs

# Setup fish
RUN apt -y install fish; chsh -s /usr/bin/fish; mkdir /root/.config; mkdir /root/.config/fish
COPY .devcontainer/config.fish /root/.config/fish

# Setup starship
RUN curl https://starship.rs/install.sh --output /starship_install.sh; chmod +x /starship_install.sh
RUN sh -c "/starship_install.sh -y"
Expand All @@ -28,6 +24,20 @@ ENV PYTHONUNBUFFERED 1
# Help Python with imports
ENV PYTHONPATH "src:${PYTHONPATH}"

RUN apt-get install ca-certificates curl
RUN install -m 0755 -d /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
RUN chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update
RUN apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin


# Copy pipenv manifests
COPY back-end/Pipfile* ./

Expand Down
2 changes: 1 addition & 1 deletion back-end/docker/image/dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base Python image
FROM python:3.10-buster
FROM python:3.10-bullseye

# Update system and install backup utilities
COPY back-end/docker/image/install-postgres-client.sh /
Expand Down
2 changes: 1 addition & 1 deletion back-end/docker/image/prod.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base Python image
FROM python:3.10-buster
FROM python:3.10-bullseye

# Update system and install backup utilities
COPY back-end/docker/image/install-postgres-client.sh /
Expand Down
2 changes: 1 addition & 1 deletion tgbot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base Python image
FROM python:3.10-buster
FROM python:3.10-bullseye

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
Expand Down
2 changes: 1 addition & 1 deletion watchdoc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base Python image
FROM python:3.9.1-buster
FROM python:3.9.1-bullseye

# Set working directory
WORKDIR /watchdoc
Expand Down

0 comments on commit c9f9380

Please sign in to comment.