From 8a0e3e96fbc14d07b69081b0616f80130ff1c570 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Wed, 10 Jul 2024 10:03:00 -0400 Subject: [PATCH] Retract pinning in Dockerfile --- Backend/Dockerfile | 4 ++-- Dockerfile | 6 +++--- database/Dockerfile | 2 +- deploy/Dockerfile | 2 +- maintenance/Dockerfile | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Backend/Dockerfile b/Backend/Dockerfile index 1588fd972d..49b984109c 100644 --- a/Backend/Dockerfile +++ b/Backend/Dockerfile @@ -1,5 +1,5 @@ # Docker multi-stage build -FROM mcr.microsoft.com/dotnet/sdk:8.0.302-1-jammy-amd64@sha256:9e23010bf3e1e837e0421f2f0cae3778f9c8fb4afaef331cc26ac15969494020 AS builder +FROM mcr.microsoft.com/dotnet/sdk:8.0.302-1-jammy-amd64 AS builder WORKDIR /app # Copy csproj and restore (fetch dependencies) as distinct layers. @@ -11,7 +11,7 @@ COPY . ./ RUN dotnet publish -c Release -o build # Build runtime image. -FROM mcr.microsoft.com/dotnet/aspnet:8.0.6-jammy-amd64@sha256:508870ea8c866710365cef2ba45c25caa172463756e8d7a94733ba49501a6a23 +FROM mcr.microsoft.com/dotnet/aspnet:8.0.6-jammy-amd64 ENV ASPNETCORE_URLS=http://+:5000 ENV COMBINE_IS_IN_CONTAINER=1 diff --git a/Dockerfile b/Dockerfile index 55ff7b71d7..c75c88d13e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # User guide build environment -FROM python:3.10.14-slim-bookworm@sha256:3b37199fbc5a730a551909b3efa7b29105c859668b7502451c163f2a4a7ae1ed AS user_guide_builder +FROM python:3.10.14-slim-bookworm AS user_guide_builder ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 @@ -16,7 +16,7 @@ COPY docs/user_guide docs/user_guide RUN tox -e user-guide # Frontend build environment. -FROM node:20.14.0-bookworm-slim@sha256:5e8ac65a0231d76a388683d07ca36a9769ab019a85d85169fe28e206f7a3208e AS frontend_builder +FROM node:20.14.0-bookworm-slim AS frontend_builder WORKDIR /app # Install app dependencies. @@ -28,7 +28,7 @@ COPY . ./ RUN npm run build # Production environment. -FROM nginx:1.27@sha256:67682bda769fae1ccf5183192b8daf37b64cae99c6c3302650f6f8bf5f0f95df +FROM nginx:1.27 WORKDIR /app diff --git a/database/Dockerfile b/database/Dockerfile index 8e8ea63ab0..465f9482d1 100644 --- a/database/Dockerfile +++ b/database/Dockerfile @@ -1,4 +1,4 @@ -FROM mongo:7.0.12-jammy@sha256:afa36bca12295b5f9dae68a493c706113922bdab520e901bd5d6c9d7247a1d8d +FROM mongo:7.0.12-jammy WORKDIR / diff --git a/deploy/Dockerfile b/deploy/Dockerfile index 27e36436a5..1e1b87c39d 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -8,7 +8,7 @@ # secret accordingly. # The scripts are written in Python. -FROM ubuntu:22.04@sha256:340d9b015b194dc6e2a13938944e0d016e57b9679963fdeb9ce021daac430221 +FROM ubuntu:22.04 USER root diff --git a/maintenance/Dockerfile b/maintenance/Dockerfile index 26fbf0918a..b897aa2dbb 100644 --- a/maintenance/Dockerfile +++ b/maintenance/Dockerfile @@ -8,7 +8,7 @@ # secret accordingly. # The scripts are written in Python. -FROM sillsdev/aws-kubectl:0.3.0@sha256:63b6f2b30119fa9c27a99a38309a4599aefe10d175fb801d51da26f13099a825 +FROM sillsdev/aws-kubectl:0.3.0 USER root