Skip to content

Commit

Permalink
Replace amazon-utils by dnf install
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Nov 30, 2023
1 parent b46a633 commit 7d25ff6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG PYTHON_VERSION=python3.8
RUN dnf clean all
RUN dnf -y install shadow-utils wget
RUN dnf -y install openssl-devel bzip2-devel libffi-devel postgresql-devel gcc unzip tar gzip
RUN amazon-linux-extras install $PYTHON_VERSION
RUN dnf install $PYTHON_VERSION
RUN dnf -y install python38-devel
RUN dnf -y install git

Expand Down
3 changes: 2 additions & 1 deletion backend/docker/prod/ecs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ARG PYTHON_VERSION=python3.8

# Installing libraries
RUN dnf upgrade -y \
&& dnf install -y findutils \
&& find /var/tmp -name "*.rpm" -print -delete \
&& find /tmp -name "*.rpm" -print -delete \
&& dnf autoremove -y \
Expand All @@ -15,7 +16,7 @@ RUN dnf upgrade -y \
&& dnf install -y \
shadow-utils wget openssl-devel bzip2-devel libffi-devel \
postgresql-devel gcc unzip tar gzip \
&& amazon-linux-extras install $PYTHON_VERSION \
&& dnf install $PYTHON_VERSION \
&& dnf install -y python38-devel git \
&& /bin/bash -c "ln -s /usr/bin/${PYTHON_VERSION} /usr/bin/python3" \
&& curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscliv2.zip \
Expand Down
2 changes: 1 addition & 1 deletion backend/docker/prod/lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN dnf upgrade -y;\

RUN dnf -y install shadow-utils wget
RUN dnf -y install openssl-devel bzip2-devel libffi-devel postgresql-devel gcc unzip tar gzip
RUN amazon-linux-extras install $PYTHON_VERSION
RUN dnf install $PYTHON_VERSION
RUN dnf -y install python38-devel

## Add your source
Expand Down
4 changes: 2 additions & 2 deletions documentation/userguide/docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ ARG ENVSUBST_VERSION=v1.1.0

RUN dnf -y install shadow-utils wget
RUN dnf -y install openssl-devel bzip2-devel libffi-devel postgresql-devel gcc unzip tar gzip
RUN amazon-linux-extras install python$PYTHON_VERSION
RUN amazon-linux-extras install nginx$NGINX_VERSION
RUN dnf install python$PYTHON_VERSION
RUN dnf install nginx$NGINX_VERSION

RUN touch ~/.bashrc

Expand Down
2 changes: 1 addition & 1 deletion frontend/docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG NVM_VERSION=v0.37.0
RUN dnf update -y && \
dnf install -y tar gzip openssl && \
dnf clean all -y
RUN amazon-linux-extras install nginx$NGINX_VERSION
RUN dnf install nginx$NGINX_VERSION

RUN touch ~/.bashrc

Expand Down

0 comments on commit 7d25ff6

Please sign in to comment.