...
|
...
|
@@ -19,7 +19,7 @@ FROM alpine:latest |
|
|
# Define the project name | 定义项目名称
|
|
|
ARG PROJECT=core
|
|
|
# Define the config file name | 定义配置文件名
|
|
|
ARG CONFIG_FILE=core-dev.yaml
|
|
|
ARG CONFIG_FILE=core-prod.yaml
|
|
|
# Define the author | 定义作者
|
|
|
ARG AUTHOR=785409885@qq.com
|
|
|
|
...
|
...
|
@@ -31,6 +31,7 @@ ENV CONFIG_FILE=${CONFIG_FILE} |
|
|
|
|
|
COPY --from=builder /build/api/${PROJECT} ./
|
|
|
COPY --from=builder /build/cmd/chart-server/api/etc/${CONFIG_FILE} ./etc/
|
|
|
COPY --from=builder /build/cmd/chart-server/api/public ./public/
|
|
|
|
|
|
EXPOSE 8080
|
|
|
ENTRYPOINT ./${PROJECT} -f etc/${CONFIG_FILE} |
|
|
\ No newline at end of file |
...
|
...
|
|