1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00
kratos/examples/i18n/Dockerfile
Windfarer a7b1af764f
feat(examples/i18n) add i18n example (#1157)
* i18n example

* enable

* regenerate

* readme

* update doc

* go mod tidy

* update readme

* go mod tidy
2021-07-12 13:41:21 +08:00

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"]