Skip to content

Commit

Permalink
Properly install tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
thechubbypanda committed Jun 17, 2024
1 parent aa9fc29 commit a4168f5
Show file tree
Hide file tree
Showing 7 changed files with 1,529 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
.env
.env
node_modules/
static/stylesheet.css
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
.env
.env
node_modules/
static/stylesheet.css
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
FROM docker.io/library/golang:alpine as build
FROM docker.io/library/golang:alpine as build-go

WORKDIR /build

COPY . .

RUN go build -o out/syncify .

FROM docker.io/library/node:alpine as build-tailwind

WORKDIR /build

COPY . .

RUN npm i

RUN npx tailwindcss -i stylesheet.css -o static/stylesheet.css

FROM docker.io/library/alpine:latest

WORKDIR /app

COPY --from=build /build/out/syncify /bin/
COPY --from=build-go /build/out/syncify /bin/

COPY static static
COPY --from=build-tailwind /build/static static

CMD ["syncify"]
Loading

0 comments on commit a4168f5

Please sign in to comment.