Mirror of the official squircy3 repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
739 B

FROM golang:alpine AS build
ARG race
ARG plugin_type=shared
RUN apk update && \
apk add yarn alpine-sdk upx
RUN go get -v github.com/gobuffalo/packr/v2/packr2
WORKDIR /squircy
COPY . .
RUN go get -v ./...
RUN make clean dist RACE=${race} PLUGIN_TYPE=${plugin_type}
FROM alpine:latest
RUN apk update && \
apk add ca-certificates curl gnupg yarn
COPY --from=build /squircy/out/squircy_linux_amd64 /bin/squircy
COPY --from=build /squircy/out/*.so /home/squircy/.squircy/plugins/
RUN cd /home/squircy/.squircy/plugins && \
for f in `ls`; do ln -sf $f `echo $f | sed -e 's/_linux_amd64//'`; done
RUN adduser -D -h /home/squircy squircy
RUN chown -R squircy: /home/squircy
USER squircy
CMD /bin/squircy -interactive