rm dockerfile
This commit is contained in:
1 file changed
-16
-16
@@ -1,16 +0,0 @@
|
||||
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