Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created March 19, 2019 09:41
Show Gist options
  • Save lordofthejars/540c48f353ed9f6c21fd818d11c56633 to your computer and use it in GitHub Desktop.
Save lordofthejars/540c48f353ed9f6c21fd818d11c56633 to your computer and use it in GitHub Desktop.
FROM oracle/graalvm-ce:1.0.0-rc12 AS builder
ENV GRAALVM_HOME=/opt/graalvm-ce-1.0.0-rc12/
COPY . .
RUN ./mvnw package -Pnative
FROM registry.fedoraproject.org/fedora-minimal
WORKDIR /work/
COPY --from=builder /target/*-runner /work/application
RUN chmod 775 /work
EXPOSE 8080
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment