Skip to content

Commit

Permalink
fix: fix tailwind build in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Brereton authored and Tom Brereton committed Jan 10, 2024
1 parent b2d20f0 commit 582252c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM node:latest as tailwindbuilder
WORKDIR /web

COPY static/ ./static/
COPY templates/ ./templates/
COPY package*.json .
COPY tailwind.config.js .
RUN ls -l /web
Expand Down Expand Up @@ -31,7 +32,7 @@ WORKDIR /root/

COPY --from=gobuilder /app/cmd/web/main .
COPY --from=tailwindbuilder /web/static/ ./static/
COPY ./templates/ ./templates/
COPY --from=tailwindbuilder /web/templates/ ./templates/

EXPOSE 3001
CMD ["./main"]

0 comments on commit 582252c

Please sign in to comment.