-
Notifications
You must be signed in to change notification settings - Fork 1
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
48f939f
commit ab100b7
Showing
42 changed files
with
2,898 additions
and
466 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
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,8 +1,34 @@ | ||
#FROM node:lts-alpine as client | ||
# | ||
#COPY js /build/js | ||
#COPY package.json /build/package.json | ||
#COPY package-lock.json /build/package-lock.json | ||
# | ||
#WORKDIR /build | ||
# | ||
#RUN npm i && npm run build | ||
|
||
FROM --platform=linux/amd64 alpine as builder | ||
RUN apk add --no-cache build-base go ffmpeg | ||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY js js | ||
#COPY --from=client /build/js js | ||
COPY pkg pkg | ||
COPY main.go . | ||
|
||
RUN go build -o justshare main.go | ||
|
||
FROM alpine | ||
RUN apk add --no-cache build-base sdl2-dev go libsndfile-dev ffmpeg hugo | ||
|
||
RUN apk add --no-cache ffmpeg hugo | ||
WORKDIR /app | ||
ADD . . | ||
# RUN make whisper && make models | ||
RUN go build -o main main.go | ||
ENTRYPOINT ["./main"] | ||
|
||
# Copy the binary from the build stage | ||
COPY --from=builder /app/justshare . | ||
|
||
ENTRYPOINT ["./justshare"] | ||
CMD ["start"] |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.