Skip to content

Commit

Permalink
update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-gaitzsch committed Sep 23, 2024
1 parent dc8a3e2 commit 5328129
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.unprivileged
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.withoutPlayground
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5328129

Please sign in to comment.