mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-24 03:46:37 +02:00
a7b1af764f
* i18n example * enable * regenerate * readme * update doc * go mod tidy * update readme * go mod tidy
25 lines
459 B
Docker
25 lines
459 B
Docker
FROM golang:1.15 AS builder
|
|
|
|
COPY . /src
|
|
WORKDIR /src
|
|
|
|
RUN GOPROXY=https://goproxy.cn make build
|
|
|
|
FROM debian:stable-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
netbase \
|
|
&& rm -rf /var/lib/apt/lists/ \
|
|
&& apt-get autoremove -y && apt-get autoclean -y
|
|
|
|
COPY --from=builder /src/bin /app
|
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 8000
|
|
EXPOSE 9000
|
|
VOLUME /data/conf
|
|
|
|
CMD ["./server", "-conf", "/data/conf"]
|