Skip to content

Commit

Permalink
Dockerfile permission
Browse files Browse the repository at this point in the history
  • Loading branch information
jsixface committed Mar 8, 2024
1 parent f477fb8 commit 88c7586
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,10 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Copy artifacts to Docker build context
run: |
mkdir -p docker-context
cp -r server docker-context/
ls -la docker-context/
tree docker-context/
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: docker-context
context: .
file: Dockerfile
push: true
labels: ${{ steps.meta.outputs.labels }}
Expand Down
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM eclipse-temurin:17-jre-alpine

RUN apk add --no-cache ffmpeg && \
mkdir /app

ENV BIND=0.0.0.0

WORKDIR /app
EXPOSE 8080

ADD server/static /app/static
RUN mkdir /app
ADD server/build/libs/server-all.jar /app
ADD server/static /app/static

RUN apk add --no-cache ffmpeg && \
chown -R 1000 /app
WORKDIR /app
ENV HOME=/app

CMD java -jar /app/server-all.jar

0 comments on commit 88c7586

Please sign in to comment.