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
|
||||
|
||||
# Add exception for .git used in ASF-ui, it's used for calculating commit hash during build
|
||||
!.git/modules/ASF-ui
|
||||
!ASF-ui/.git
|
||||
|
||||
# _ _
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
ARG IMAGESUFFIX
|
||||
|
||||
FROM --platform=$BUILDPLATFORM node:lts${IMAGESUFFIX} AS build-node
|
||||
WORKDIR /app
|
||||
WORKDIR /app/ASF-ui
|
||||
COPY ASF-ui .
|
||||
COPY .git/modules/ASF-ui /app/.git/modules/ASF-ui
|
||||
RUN echo "node: $(node --version)" && \
|
||||
echo "npm: $(npm --version)" && \
|
||||
npm ci --no-progress && \
|
||||
|
@ -18,7 +19,7 @@ ENV DOTNET_NOLOGO true
|
|||
ENV NET_CORE_VERSION net6.0
|
||||
ENV STEAM_TOKEN_DUMPER_NAME ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
|
||||
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.OfficialPlugins.SteamTokenDumper ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
|
||||
COPY resources resources
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
ARG IMAGESUFFIX
|
||||
|
||||
FROM --platform=$BUILDPLATFORM node:lts${IMAGESUFFIX} AS build-node
|
||||
WORKDIR /app
|
||||
WORKDIR /app/ASF-ui
|
||||
COPY ASF-ui .
|
||||
COPY .git/modules/ASF-ui /app/.git/modules/ASF-ui
|
||||
RUN echo "node: $(node --version)" && \
|
||||
echo "npm: $(npm --version)" && \
|
||||
npm ci --no-progress && \
|
||||
|
@ -18,7 +19,7 @@ ENV DOTNET_NOLOGO true
|
|||
ENV NET_CORE_VERSION net6.0
|
||||
ENV STEAM_TOKEN_DUMPER_NAME ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
|
||||
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.OfficialPlugins.SteamTokenDumper ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
|
||||
COPY resources resources
|
||||
|
|
Loading…
Reference in a new issue