Skip to content

Commit

Permalink
improve styling and reduce css size
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja committed Sep 27, 2023
1 parent 20fb50b commit 39c4182
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ RUN mkdir -p /app/articles/
# Node stage
FROM node:alpine AS node
WORKDIR /app
COPY . .
COPY ./tailwind.config.js .
COPY ./package.json .
COPY ./package-lock.json .
COPY ./static ./static
COPY ./templates ./templates
RUN npm install && \
npx tailwindcss -o ./style.css --minify
npx tailwindcss -i ./static/css/input.css -o ./static/css/style.css --minify

# Start from a complete image
FROM alpine:latest as certs
Expand All @@ -35,7 +39,7 @@ COPY --from=builder /app/articles /app/articles
COPY templates templates
COPY static static

COPY --from=node /app/style.css ./static/css/style.css
COPY --from=node /app/static/css/style.css ./static/css/style.css

EXPOSE 3000
CMD ["/app/blogo", "-path", "/app"]
Binary file added static/css/fonts/garamond.ttf
Binary file not shown.

0 comments on commit 39c4182

Please sign in to comment.