mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-10 04:08:09 -06:00
update documentation, goreleaser, Dockerfile
This commit is contained in:
parent
23786826a8
commit
ed1d606e25
5 changed files with 23 additions and 20 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -5,17 +5,18 @@ FROM --platform=${BUILDPLATFORM} node:17.6.0-alpine3.15 AS admin_builder
|
|||
RUN apk update && apk upgrade --no-cache
|
||||
RUN apk add git
|
||||
|
||||
RUN git clone https://github.com/superseriousbusiness/gotosocial-admin
|
||||
WORKDIR /gotosocial-admin
|
||||
|
||||
RUN npm install
|
||||
RUN node index.js
|
||||
|
||||
FROM --platform=${TARGETPLATFORM} alpine:3.15.0 AS executor
|
||||
|
||||
# copy over the binary from the first stage
|
||||
COPY --chown=1000:1000 gotosocial /gotosocial/gotosocial
|
||||
|
||||
# bundle frontend stuff
|
||||
WORKDIR "web/source"
|
||||
RUN yarn install
|
||||
RUN BUDO_BUILD=1 node index.js
|
||||
# sources no longer needed
|
||||
RUN rm -rf web/source
|
||||
|
||||
# copy over the web directory with templates etc
|
||||
COPY --chown=1000:1000 web /gotosocial/web
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue