Skip to content

Commit

Permalink
Trying with ubuntu jammy as base image.
Browse files Browse the repository at this point in the history
  • Loading branch information
renemadsen committed Nov 19, 2023
1 parent af544ab commit a5d4507
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM node:18-bookworm-slim as node-env

WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY eform-angular-frontend/eform-client ./
RUN npm install --global yarn
RUN yarn install
RUN npm run build

FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy AS build-env
FROM mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim AS build-env
WORKDIR /app
ARG GITVERSION
ARG PLUGINVERSION
Expand All @@ -30,7 +32,7 @@ RUN dotnet publish BackendConfiguration.Pn -o BackendConfiguration.Pn/out /p:Ver
RUN dotnet publish GreateBelt.Pn -o GreateBelt.Pn/out /p:Version=$PLUGIN6VERSION --runtime linux-x64 --configuration Release

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0-jammy
FROM mcr.microsoft.com/dotnet/aspnet:7.0-bookworm-slim
WORKDIR /app
COPY --from=build-env /app/eFormAPI.Web/out .
RUN mkdir -p ./Plugins/ItemsPlanning.Pn
Expand Down

0 comments on commit a5d4507

Please sign in to comment.