Rename to MoChi

This commit is contained in:
Lawrence, Rendall
2021-12-21 15:07:11 +03:00
parent 5a1ac73a3d
commit 4dbbb4ad83
72 changed files with 185 additions and 726 deletions
+7 -7
View File
@@ -5,22 +5,22 @@ LABEL maintainer "Jimmy Zelinskie <jimmyzelinskie+git@gmail.com>"
RUN apk add --no-cache curl git
# Copy our source code into the container.
WORKDIR /go/src/github.com/chihaya/chihaya
COPY . /go/src/github.com/chihaya/chihaya
WORKDIR /go/src/github.com/sot-tech/mochi
COPY . /go/src/github.com/sot-tech/mochi
# Install our golang dependencies and compile our binary.
RUN CGO_ENABLED=0 go install ./cmd/chihaya
RUN CGO_ENABLED=0 go install ./cmd/mochi
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=build-env /go/bin/chihaya /chihaya
COPY --from=build-env /go/bin/mochi /mochi
RUN adduser -D chihaya
RUN adduser -D mochi
# Expose a docker interface to our binary.
EXPOSE 6880 6969
# Drop root privileges
USER chihaya
USER mochi
ENTRYPOINT ["/chihaya"]
ENTRYPOINT ["/mochi"]