Skip to content
Snippets Groups Projects
Verified Commit eb652661 authored by Martin Weise's avatar Martin Weise
Browse files

Fixed the frontend

parent a4f255de
No related branches found
No related tags found
1 merge request!299Dev
...@@ -28,9 +28,9 @@ RUN apk add --no-cache curl bash jq ...@@ -28,9 +28,9 @@ RUN apk add --no-cache curl bash jq
WORKDIR /app WORKDIR /app
USER 65534 USER 1001
COPY --from=build --chown=65534 ./rest-service/target/rest-service-*.jar ./data-service.jar COPY --from=build --chown=1001 ./rest-service/target/rest-service-*.jar ./data-service.jar
# non-root port # non-root port
EXPOSE 8080 EXPOSE 8080
......
...@@ -34,9 +34,9 @@ RUN apk add --no-cache curl bash jq ...@@ -34,9 +34,9 @@ RUN apk add --no-cache curl bash jq
WORKDIR /app WORKDIR /app
USER 65534 USER 1001
COPY --from=build --chown=65534 ./rest-service/target/dbrepo-metadata-service-rest-service-*.jar ./metadata-service.jar COPY --from=build --chown=1001 ./rest-service/target/dbrepo-metadata-service-rest-service-*.jar ./metadata-service.jar
# non-root port # non-root port
EXPOSE 8080 EXPOSE 8080
......
FROM oven/bun:1.0.26-alpine as build FROM oven/bun:1.0.26-alpine AS build
MAINTAINER Martin Weise <martin.weise@tuwien.ac.at>
WORKDIR /app WORKDIR /app
COPY ./package.json ./package.json COPY ./package.json ./package.json
COPY ./bun.lockb ./bun.lockb
RUN bun install RUN bun install
...@@ -27,16 +25,17 @@ COPY ./nuxt.config.ts ./nuxt.config.ts ...@@ -27,16 +25,17 @@ COPY ./nuxt.config.ts ./nuxt.config.ts
RUN bun run build RUN bun run build
FROM oven/bun:1.0.26-alpine as runtime FROM oven/bun:1.0.26-alpine as runtime
MAINTAINER Martin Weise <martin.weise@tuwien.ac.at>
ARG APP_VERSION="latest" ARG APP_VERSION="latest"
ARG COMMIT="" ARG COMMIT=""
USER 65534 USER 1000
WORKDIR /app WORKDIR /app
COPY --from=build --chown=65534 /app/.output /app/.output COPY --from=build --chown=1000 /app/.output /app/.output
RUN chmod -R 755 /app/.output
ENV NUXT_PUBLIC_VERSION="${APP_VERSION:-}" ENV NUXT_PUBLIC_VERSION="${APP_VERSION:-}"
ENV NUXT_PUBLIC_COMMIT="${COMMIT:-}" ENV NUXT_PUBLIC_COMMIT="${COMMIT:-}"
......
File deleted
...@@ -697,7 +697,7 @@ ui: ...@@ -697,7 +697,7 @@ ui:
runAsGroup: 1000 runAsGroup: 1000
runAsNonRoot: true runAsNonRoot: true
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
readOnlyRootFilesystem: false readOnlyRootFilesystem: true
capabilities: capabilities:
drop: [ "ALL" ] drop: [ "ALL" ]
seccompProfile: seccompProfile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment