Take into account that git is special snowflake

This commit is contained in:
JustArchi 2022-07-15 21:45:18 +02:00
parent 888b45c919
commit 21a5793c45
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA
3 changed files with 7 additions and 4 deletions

View file

@ -31,6 +31,7 @@ ASF-ui/dist
wiki wiki
# Add exception for .git used in ASF-ui, it's used for calculating commit hash during build # Add exception for .git used in ASF-ui, it's used for calculating commit hash during build
!.git/modules/ASF-ui
!ASF-ui/.git !ASF-ui/.git
# _ _ # _ _

View file

@ -1,8 +1,9 @@
ARG IMAGESUFFIX ARG IMAGESUFFIX
FROM --platform=$BUILDPLATFORM node:lts${IMAGESUFFIX} AS build-node FROM --platform=$BUILDPLATFORM node:lts${IMAGESUFFIX} AS build-node
WORKDIR /app WORKDIR /app/ASF-ui
COPY ASF-ui . COPY ASF-ui .
COPY .git/modules/ASF-ui /app/.git/modules/ASF-ui
RUN echo "node: $(node --version)" && \ RUN echo "node: $(node --version)" && \
echo "npm: $(npm --version)" && \ echo "npm: $(npm --version)" && \
npm ci --no-progress && \ npm ci --no-progress && \
@ -18,7 +19,7 @@ ENV DOTNET_NOLOGO true
ENV NET_CORE_VERSION net6.0 ENV NET_CORE_VERSION net6.0
ENV STEAM_TOKEN_DUMPER_NAME ArchiSteamFarm.OfficialPlugins.SteamTokenDumper ENV STEAM_TOKEN_DUMPER_NAME ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
WORKDIR /app WORKDIR /app
COPY --from=build-node /app/dist ASF-ui/dist COPY --from=build-node /app/ASF-ui/dist ASF-ui/dist
COPY ArchiSteamFarm ArchiSteamFarm COPY ArchiSteamFarm ArchiSteamFarm
COPY ArchiSteamFarm.OfficialPlugins.SteamTokenDumper ArchiSteamFarm.OfficialPlugins.SteamTokenDumper COPY ArchiSteamFarm.OfficialPlugins.SteamTokenDumper ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
COPY resources resources COPY resources resources

View file

@ -1,8 +1,9 @@
ARG IMAGESUFFIX ARG IMAGESUFFIX
FROM --platform=$BUILDPLATFORM node:lts${IMAGESUFFIX} AS build-node FROM --platform=$BUILDPLATFORM node:lts${IMAGESUFFIX} AS build-node
WORKDIR /app WORKDIR /app/ASF-ui
COPY ASF-ui . COPY ASF-ui .
COPY .git/modules/ASF-ui /app/.git/modules/ASF-ui
RUN echo "node: $(node --version)" && \ RUN echo "node: $(node --version)" && \
echo "npm: $(npm --version)" && \ echo "npm: $(npm --version)" && \
npm ci --no-progress && \ npm ci --no-progress && \
@ -18,7 +19,7 @@ ENV DOTNET_NOLOGO true
ENV NET_CORE_VERSION net6.0 ENV NET_CORE_VERSION net6.0
ENV STEAM_TOKEN_DUMPER_NAME ArchiSteamFarm.OfficialPlugins.SteamTokenDumper ENV STEAM_TOKEN_DUMPER_NAME ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
WORKDIR /app WORKDIR /app
COPY --from=build-node /app/dist ASF-ui/dist COPY --from=build-node /app/ASF-ui/dist ASF-ui/dist
COPY ArchiSteamFarm ArchiSteamFarm COPY ArchiSteamFarm ArchiSteamFarm
COPY ArchiSteamFarm.OfficialPlugins.SteamTokenDumper ArchiSteamFarm.OfficialPlugins.SteamTokenDumper COPY ArchiSteamFarm.OfficialPlugins.SteamTokenDumper ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
COPY resources resources COPY resources resources