Skip to content

Commit

Permalink
Merge pull request #11 from Tech-Fabric/seats-and-passenger-details
Browse files Browse the repository at this point in the history
Dockerfile sass fix and nuget packages cache
  • Loading branch information
ustims authored Feb 10, 2024
2 parents 52d94fa + 0c9f2ce commit affbb4d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions TemporalAirlinesConcept.Web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ EXPOSE 5166
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release

RUN apt update && apt install -y curl bash
RUN apt update && apt install -y curl && apt clean

RUN mkdir -p tmp && cd tmp && \
curl -L -o sass_package.tar.gz https://github.com/sass/dart-sass/releases/download/1.55.0/dart-sass-1.55.0-linux-x64.tar.gz && \
tar -xvf ./sass_package.tar.gz && \
ls -la dart-sass && \
cp dart-sass/sass /usr/bin/ && ls -la /usr/bin && /usr/bin/sass --version && \
chmod +x /usr/bin/sass && \
cd - && rm -Rf tmp
RUN curl -L -o sass_package.tar.gz https://github.com/sass/dart-sass/releases/download/1.55.0/dart-sass-1.55.0-linux-x64.tar.gz
RUN tar -xvf sass_package.tar.gz
RUN ls -la dart-sass
RUN cp dart-sass/sass /usr/bin/ && /usr/bin/sass --version
RUN chmod +x /usr/bin/sass
RUN rm -Rf dart-sass sass_package.tar.gz

WORKDIR /src
COPY ["TemporalAirlinesConcept.Web/TemporalAirlinesConcept.Web.csproj", "TemporalAirlinesConcept.Web/"]
COPY ["TemporalAirlinesConcept.Configuration/TemporalAirlinesConcept.Configuration.csproj", "TemporalAirlinesConcept.Configuration/"]
COPY ["TemporalAirlinesConcept.DAL/TemporalAirlinesConcept.DAL.csproj", "TemporalAirlinesConcept.DAL/"]
COPY ["TemporalAirlinesConcept.Services/TemporalAirlinesConcept.Services.csproj", "TemporalAirlinesConcept.Services/"]
COPY ["TemporalAirlinesConcept.Common/TemporalAirlinesConcept.Common.csproj", "TemporalAirlinesConcept.Common/"]
COPY ["TemporalAirlinesConcept.Web/TemporalAirlinesConcept.Web.csproj", "TemporalAirlinesConcept.Web/"]
RUN dotnet restore "./TemporalAirlinesConcept.Web/TemporalAirlinesConcept.Web.csproj"
COPY . .
WORKDIR "/src/TemporalAirlinesConcept.Web"
Expand Down

0 comments on commit affbb4d

Please sign in to comment.