Struchkov Mark
eeb14cdca9
New exception handlers have been added and database setup files introduced. This update also deletes unnecessary Docker and Java files, and modifies various files related to error handling and database changes. Exception handlers for runtime, social network, and not found exceptions are added to improve error feedback in the application. Database setup includes a Liquibase changelog and SQL scripts to create the person table in the database.
31 lines
944 B
Docker
31 lines
944 B
Docker
####
|
|
# This Dockerfile.native is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
|
|
# It uses a micro base image, tuned for Quarkus native executables.
|
|
# It reduces the size of the resulting container image.
|
|
# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
|
|
#
|
|
# Before building the container image run:
|
|
#
|
|
# ./mvnw package -Dnative -Dquarkus.native.remote-container-build=true
|
|
#
|
|
# Then, build the image with:
|
|
#
|
|
# docker build -t quarkus/social-network:latest .
|
|
#
|
|
# Then run the container using:
|
|
#
|
|
# docker run -i --rm -p 8080:8080 quarkus/social-network:latest
|
|
#
|
|
###
|
|
FROM quay.io/quarkus/quarkus-micro-image:2.0
|
|
WORKDIR /work/
|
|
RUN chown 1001 /work \
|
|
&& chmod "g+rwX" /work \
|
|
&& chown 1001:root /work
|
|
COPY --chown=1001:root target/*-runner /work/application
|
|
|
|
EXPOSE 8080
|
|
USER 1001
|
|
|
|
ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
|