update
This commit is contained in:
11 files changed
+367
-7
No files matched your search
+16
@@ -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
|
||||
Reference in New Issue
Block a user