This commit is contained in:
@ -26,5 +26,6 @@ ENV TZ=Asia/Shanghai
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/file /app/file
|
||||
COPY docker/docker-file/etc/config.yaml /app/etc/config.yaml
|
||||
|
||||
CMD ["./file", "-f", "etc/config.yaml"]
|
||||
|
||||
15
docker/docker-file/docker-compose-prod.yaml
Normal file
15
docker/docker-file/docker-compose-prod.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
services:
|
||||
file:
|
||||
image: file
|
||||
container_name: file
|
||||
restart: always
|
||||
networks:
|
||||
- godemo_network
|
||||
# 端口映射,生产环境非必须,开发环境用于方便调试
|
||||
ports:
|
||||
- "60200:60200"
|
||||
|
||||
networks:
|
||||
godemo_network:
|
||||
name: godemo_network
|
||||
external: true
|
||||
Reference in New Issue
Block a user