docker file

This commit is contained in:
李亮亮 2024-07-24 14:47:19 +08:00
parent fa0eb9ffc8
commit 6b2b1728b3
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ COPY static /apps/static
COPY templates /apps/templates COPY templates /apps/templates
RUN chmod a+x /apps/md-view-go RUN chmod a+x /apps/md-view-go
RUN apt-get install curl -y
# 拷贝配置文件到容器中 # 拷贝配置文件到容器中
COPY config/application.yaml /apps/config/application.yaml COPY config/application.yaml /apps/config/application.yaml
@ -28,4 +27,4 @@ ENV LANG C.UTF-8
# 暴露端口 # 暴露端口
EXPOSE 8081 EXPOSE 8081
CMD ["/apps/md-view-go"] CMD ["apt instal curl -y && /apps/md-view-go"]