diff --git a/Dockerfile b/Dockerfile index 5fdee7d..c5ef7b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,17 @@ -FROM golang:bullseye as build-service +FROM golang:bullseye AS build-service WORKDIR /build COPY . . RUN go build -o pdf-turtle -FROM node:lts as build-playground +FROM node:lts AS build-playground WORKDIR /app COPY .pdf-turtle-playground/. . -RUN npm i +RUN npm install RUN npm run build -FROM chromedp/headless-shell:latest as runtime +FROM chromedp/headless-shell:latest AS runtime WORKDIR /app COPY --from=build-service /build/pdf-turtle /app/pdf-turtle COPY --from=build-playground /app/dist /app/static-files/extern/playground diff --git a/Dockerfile.unprivileged b/Dockerfile.unprivileged index 9aed5ef..c361482 100644 --- a/Dockerfile.unprivileged +++ b/Dockerfile.unprivileged @@ -1,17 +1,17 @@ -FROM golang:bullseye as build-service +FROM golang:bullseye AS build-service WORKDIR /build COPY . . RUN go build -o pdf-turtle -FROM node:lts as build-playground +FROM node:lts AS build-playground WORKDIR /app COPY .pdf-turtle-playground/. . -RUN npm i +RUN npm install RUN npm run build -FROM chromedp/headless-shell:latest as runtime +FROM chromedp/headless-shell:latest AS runtime WORKDIR /app COPY --from=build-service /build/pdf-turtle /app/pdf-turtle COPY --from=build-playground /app/dist /app/static-files/extern/playground diff --git a/Dockerfile.withoutPlayground b/Dockerfile.withoutPlayground index 855e4bd..08964a5 100644 --- a/Dockerfile.withoutPlayground +++ b/Dockerfile.withoutPlayground @@ -1,10 +1,10 @@ -FROM golang:bullseye as build-service +FROM golang:bullseye AS build-service WORKDIR /build COPY . . RUN go build -o pdf-turtle -FROM chromedp/headless-shell:stable as runtime +FROM chromedp/headless-shell:stable AS runtime RUN apt-get -y update RUN apt-get -y install ca-certificates fonts-open-sans fonts-roboto fonts-noto-color-emoji RUN apt-get clean