This commit is contained in:
2024-08-27 19:15:47 +08:00
parent 1e15c48072
commit 5d7a25e287
11 files changed
+367 -7

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
FROM nginx:alpine as nginx-server
RUN echo "server { listen 8000; location / { return 200 'OK'; add_header Content-Type text/plain; } }" \
> /etc/nginx/conf.d/default.conf
FROM openjdk:17-alpine
WORKDIR /app
COPY build/libs/FancyBot-1.0-SNAPSHOT-all.jar /app/app.jar
COPY --from=nginx-server /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
CMD ["sh", "-c", "nginx && java -jar app.jar"]
EXPOSE 8000