Skip to content

Commit

Permalink
Add Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperxpro committed Jul 26, 2024
1 parent 7063a4f commit 1c3e869
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docker Build

on:
push:
workflow_dispatch:
inputs:
name:
description: 'GitHub Actions'
required: true
default: 'GitHub Actions'

jobs:
JDK17:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Build Image
run: docker build -f docker/Dockerfile -t expressgateway:build .
8 changes: 8 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM maven:3.9.8-amazoncorretto-21-al2023

WORKDIR /usr/app
COPY . .

RUN mvn -ntp -B clean package -DskipTests

ENTRYPOINT ["java", "-XX:+UseShenandoahGC", "-jar", "/usr/app/bootstrap/bootstrap-0.0.1-a.jar"]

0 comments on commit 1c3e869

Please sign in to comment.