-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (25 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM node:20-alpine as node
RUN apk add --no-cache util-linux
WORKDIR /build/
ADD src/Isotope/Isotope/package.json .
ADD src/Isotope/Isotope/package-lock.json .
RUN npm ci
ADD src/Isotope/Isotope/ .
RUN find .
RUN npm run build
FROM mcr.microsoft.com/dotnet/sdk:9.0 as net-builder
WORKDIR /build
ADD src/Isotope/Isotope.sln .
ADD src/Isotope/Isotope/Isotope.csproj Isotope/
RUN dotnet restore
COPY --from=node /build Isotope/
RUN dotnet publish --output ../out/ --configuration Release --runtime linux-musl-x64 --self-contained true Isotope/Isotope.csproj
FROM alpine:latest
RUN apk add --no-cache libintl icu && \
apk add --no-cache libgdiplus --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
WORKDIR /app
COPY --from=net-builder /out .
RUN chmod +x /app/Isotope
ENV ASPNETCORE_ENVIRONMENT=Production
EXPOSE 5000
ENTRYPOINT ["/app/Isotope"]