RESTfulMC/API/Dockerfile
Braydon 4721b46ce9
All checks were successful
Deploy API / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m39s
Update API/Dockerfile
2024-04-14 09:16:09 -07:00

22 lines
411 B
Docker

FROM maven:3.8.5-openjdk-17-slim
# Set the working directory
WORKDIR /home/container
# Copy project files
COPY . .
# Build the app
RUN mvn clean package -q -DskipTests -T4C
# 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
# We're running in production
ENV APP_ENV "production"
# Start the app
CMD ["java", "-jar", "target/RESTfulMC.jar"]