Skip to content

Commit

Permalink
improved pdf printing
Browse files Browse the repository at this point in the history
  • Loading branch information
enoy19 committed Aug 25, 2023
1 parent 30a44dc commit 215c572
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 575 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM node:18.16.0-alpine3.16 AS build
FROM node:18.16.0-alpine3.16 AS runtime

RUN apk add --no-cache ghostscript graphicsmagick
RUN apk add --no-cache imagemagick

# ! ######################################

FROM runtime AS build

WORKDIR /app
COPY . .
Expand All @@ -17,11 +21,9 @@ ENV TZ='Etc/UTC'

RUN npm run build

#######################################

FROM node:18.16.0-alpine3.16
# ! ######################################

RUN apk add --no-cache ghostscript graphicsmagick
FROM runtime

WORKDIR /app
RUN rm -rf ./*
Expand Down
Loading

0 comments on commit 215c572

Please sign in to comment.