Skip to content

Commit

Permalink
Merge pull request #6 from fsinfopassau/dev
Browse files Browse the repository at this point in the history
Explicitly set from images in docker files
  • Loading branch information
FDHoho007 authored Apr 19, 2024
2 parents 7897184 + bde2b90 commit 2120079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM maven:3.8.3-openjdk-17 AS backend
FROM docker.io/library/maven:3.8.3-openjdk-17 AS backend
WORKDIR /app/backend
COPY ./pom.xml ./
COPY ./src ./src/
RUN mvn package -DskipTests

# Run
FROM openjdk:17-slim
FROM docker.io/library/openjdk:17-slim
WORKDIR /app
COPY --from=backend /app/backend/target/*.jar ./backend.jar
EXPOSE 8081
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16 AS frontend
FROM docker.io/library/node:16 AS frontend
ARG VITE_API_URL
ENV VITE_API_URL $VITE_API_URL
WORKDIR /app/frontend
Expand Down

0 comments on commit 2120079

Please sign in to comment.