mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Take into account that git is special snowflake
This commit is contained in:
parent
888b45c919
commit
21a5793c45
3 changed files with 7 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
# _ _
|
# _ _
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue