mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 01:48:09 -07:00
Rename to MoChi
This commit is contained in:
+7
-7
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user