From c9b37c56cacaa5d6cc0056c1426ebe98de8fcdc3 Mon Sep 17 00:00:00 2001 From: jon r Date: Sat, 7 Sep 2024 15:01:23 +0200 Subject: [PATCH] chore(docker): fmt Dockerfiles --- api/Dockerfile | 6 +++--- front/Dockerfile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 711b79c55..ba47642b0 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.19 as requirements +FROM alpine:3.19 AS requirements RUN set -eux; \ apk add --no-cache \ @@ -12,7 +12,7 @@ RUN set -eux; \ poetry export --without-hashes --extras typesense > requirements.txt; \ poetry export --without-hashes --with dev > dev-requirements.txt; -FROM alpine:3.19 as builder +FROM alpine:3.19 AS builder ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 @@ -80,7 +80,7 @@ RUN --mount=type=cache,target=~/.cache/pip; \ watchfiles==0.19.0; \ fi -FROM alpine:3.19 as production +FROM alpine:3.19 AS production ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 diff --git a/front/Dockerfile b/front/Dockerfile index c47b3155a..659c25cf7 100644 --- a/front/Dockerfile +++ b/front/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM node:18-alpine as builder +FROM --platform=$BUILDPLATFORM node:18-alpine AS builder RUN apk add --no-cache jq bash coreutils python3 build-base @@ -13,7 +13,7 @@ COPY src /app/src COPY index.html pwa-manifest.json tsconfig.json vite.config.ts /app/ RUN yarn build:deployment -FROM nginx:1.23.4-alpine as production +FROM nginx:1.23.4-alpine AS production COPY --from=builder /app/dist /usr/share/nginx/html COPY docker/funkwhale.conf.template /etc/nginx/templates/default.conf.template