-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa9fc29
commit a4168f5
Showing
7 changed files
with
1,529 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.idea/ | ||
.env | ||
.env | ||
node_modules/ | ||
static/stylesheet.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.idea/ | ||
.env | ||
.env | ||
node_modules/ | ||
static/stylesheet.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.