chore(docker): fmt Dockerfiles
This commit is contained in:
parent
f0c8e95a35
commit
c9b37c56ca
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.19 as requirements
|
FROM alpine:3.19 AS requirements
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
|
@ -12,7 +12,7 @@ RUN set -eux; \
|
||||||
poetry export --without-hashes --extras typesense > requirements.txt; \
|
poetry export --without-hashes --extras typesense > requirements.txt; \
|
||||||
poetry export --without-hashes --with dev > dev-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 PYTHONDONTWRITEBYTECODE=1
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
@ -80,7 +80,7 @@ RUN --mount=type=cache,target=~/.cache/pip; \
|
||||||
watchfiles==0.19.0; \
|
watchfiles==0.19.0; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FROM alpine:3.19 as production
|
FROM alpine:3.19 AS production
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
|
@ -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
|
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/
|
COPY index.html pwa-manifest.json tsconfig.json vite.config.ts /app/
|
||||||
RUN yarn build:deployment
|
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 --from=builder /app/dist /usr/share/nginx/html
|
||||||
COPY docker/funkwhale.conf.template /etc/nginx/templates/default.conf.template
|
COPY docker/funkwhale.conf.template /etc/nginx/templates/default.conf.template
|
||||||
|
|
Loading…
Reference in New Issue