This commit is contained in:
@ -16,10 +16,5 @@ jobs:
|
|||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
docker build -t file -f docker/docker-file/Dockerfile .
|
docker build -t file -f docker/docker-file/Dockerfile .
|
||||||
echo "The workflow is now ready to test your code on the runner.000"
|
docker compose -f docker/docker-file/docker-compose-prod.yaml up -d
|
||||||
ls /Workspace/docker
|
|
||||||
echo "The workflow is now ready to test your code on the runner.111"
|
|
||||||
cd /Workspace/docker/docker-file/
|
|
||||||
echo "The workflow is now ready to test your code on the runner.222"
|
|
||||||
docker compose up -d
|
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
@ -26,5 +26,6 @@ ENV TZ=Asia/Shanghai
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/file /app/file
|
COPY --from=builder /app/file /app/file
|
||||||
|
COPY docker/docker-file/etc/config.yaml /app/etc/config.yaml
|
||||||
|
|
||||||
CMD ["./file", "-f", "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