Skip to content

Commit

Permalink
Merge pull request #43 from conorheffron/dev
Browse files Browse the repository at this point in the history
Pull latest from dev branch
  • Loading branch information
conorheffron authored Mar 27, 2024
2 parents c01daf8 + d7b8b41 commit 4bba8c1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM eclipse-temurin:8-jdk

VOLUME /tmp
ADD target/*.war app.war
ADD *.war app.war
RUN sh -c 'touch /app.war'

ENTRYPOINT [ "sh", "-c", "java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /app.war" ]
ENTRYPOINT [ "sh", "-c", "java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /app.war" ]

0 comments on commit 4bba8c1

Please sign in to comment.