RESTfulMC/Dockerfile
Rainnny7 fbd8925668
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0) (push) Failing after 12s
CI Deployment
2024-04-07 00:27:09 -04:00

16 lines
274 B
Docker

FROM openjdk:17-jdk-slim
# Copy project files
COPY . .
# Build the app
RUN mvn clean package
# Exposting on port 80 so we can
# access via a reverse proxy for Dokku
ENV HOSTNAME "0.0.0.0"
EXPOSE 80
ENV PORT 80
# Start the app
CMD ["java", "-jar", "target/RESTfulMC.jar"]