Skip to content

Commit

Permalink
deployment works
Browse files Browse the repository at this point in the history
  • Loading branch information
breadchris committed Feb 15, 2024
1 parent 48f939f commit ab100b7
Show file tree
Hide file tree
Showing 42 changed files with 2,898 additions and 466 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# - name: Push backend image
# if: github.ref == 'refs/heads/main'
# run: |
# SERVER_IMAGE_ID=ghcr.io/breadchris/sifty
# SERVER_IMAGE_ID=ghcr.io/justshare-io/justshare
#
# # Change all uppercase to lowercase
# SERVER_IMAGE_ID=$(echo $SERVER_IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand Down
36 changes: 31 additions & 5 deletions Dockerfile
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"]
4 changes: 2 additions & 2 deletions js/dist/extension/background.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/dist/extension/background.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions js/dist/extension/content.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/dist/extension/content.js.map

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions js/dist/extension/options.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/dist/extension/options.js.map

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions js/dist/extension/tab.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/dist/extension/tab.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit ab100b7

Please sign in to comment.