Skip to content

Commit cc88432

Browse files
committed
Fix Dockerfile and gemfile
1 parent 2e8a3ff commit cc88432

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ GEM
4141
jekyll-seo-tag (>= 2.0)
4242
rake (>= 12.3.1)
4343
kramdown (2.4.0)
44-
rexml (>=3.2.7)
44+
rexml
4545
kramdown-parser-gfm (1.1.0)
4646
kramdown (~> 2.0)
4747
liquid (4.0.3)
@@ -56,7 +56,7 @@ GEM
5656
rb-fsevent (0.11.2)
5757
rb-inotify (0.10.1)
5858
ffi (~> 1.0)
59-
rexml (3.2.5)
59+
rexml (3.2.8)
6060
rouge (4.0.0)
6161
safe_yaml (1.0.5)
6262
sassc (2.4.0)
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
2-
WORKDIR /app
3-
4-
# Copy csproj and restore as distinct layers
5-
COPY *.csproj ./
6-
RUN dotnet restore
7-
8-
# Copy everything else and build
9-
COPY . ./
10-
RUN dotnet publish -c Release -o out
11-
12-
# Build runtime image
13-
FROM mcr.microsoft.com/dotnet/aspnet:6.0
14-
WORKDIR /app
15-
COPY --from=build-env /app/out .
1+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
2+
WORKDIR /app
3+
4+
# Copy csproj and restore as distinct layers
5+
COPY *.csproj ./
6+
RUN dotnet restore
7+
8+
# Copy everything else and build
9+
COPY . ./
10+
RUN dotnet publish -c Release -o out
11+
12+
# Build runtime image
13+
FROM mcr.microsoft.com/dotnet/aspnet:8.0
14+
WORKDIR /app
15+
COPY --from=build-env /app/out .
1616
ENTRYPOINT ["dotnet", "RazorPagesTestSample.dll"]

0 commit comments

Comments
 (0)