websites: use upstream dockerfile

This commit is contained in:
Francois Andrieu 2023-03-21 09:40:47 +01:00 committed by kevin
parent 6d8bd22987
commit 6b596e84e2

View file

@ -12,18 +12,6 @@ spec:
git:
uri: "https://gitlab.com/fedora/websites-apps/fedora-websites/fedora-websites-3.0.git"
ref: main
dockerfile: |-
FROM docker.io/library/node:18 as build
RUN apt-get update && apt-get install -y translate-toolkit && rm -rf /var/lib/apt/lists/*
ADD . /websites
WORKDIR /websites
RUN npm install
RUN npm run generate
FROM quay.io/fedora/fedora:37
RUN dnf -y install s3cmd && dnf clean all
COPY --from=build /websites/.output/public /output
{% else %}
dockerfile: |-
FROM fedora:34