Skip to content

Commit

Permalink
investigating docker-ce errors
Browse files Browse the repository at this point in the history
Signed-off-by: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com>
  • Loading branch information
Thistleman committed May 2, 2024
1 parent 03691bd commit 7883435
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.0.0-experimental
FROM python:3.9-slim as base
FROM python:3.8-slim as base

SHELL ["/bin/bash", "-c"]

Expand Down
12 changes: 8 additions & 4 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# syntax=docker/dockerfile:1.0.0-experimental
FROM python:3.9-slim as base
FROM python:3.8-slim as base

SHELL ["/bin/bash", "-c"]

RUN apt-get update -qq && apt-get install -y ssh git openssl
RUN apt-get update -qq && apt-get install -y ssh git

# require a private key to access private github repositories
ARG SSH_PRIVATE_KEY
Expand Down Expand Up @@ -38,8 +38,12 @@ ENV PATH="/.venv/bin:$PATH"

COPY . .

RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
RUN apt-get update
RUN apt-get install -y ca-certificates curl
RUN install -m 0755 -d /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
RUN chmod a+r /etc/apt/keyrings/docker.asc
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update

RUN apt install -y docker-ce git
Expand Down

0 comments on commit 7883435

Please sign in to comment.