mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix: 💚 Move git commit env var in last step of Dockerfile to avoid it being removed
This commit is contained in:
parent
39d9b4c031
commit
152e42fd30
|
|
@ -20,10 +20,6 @@ COPY . /temp
|
||||||
# Copy dependencies
|
# Copy dependencies
|
||||||
COPY --from=install /temp/node_modules /temp/node_modules
|
COPY --from=install /temp/node_modules /temp/node_modules
|
||||||
|
|
||||||
# Set current Git commit hash as an environment variable
|
|
||||||
ARG GIT_COMMIT
|
|
||||||
ENV GIT_COMMIT=$GIT_COMMIT
|
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
WORKDIR /temp
|
WORKDIR /temp
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
@ -46,6 +42,10 @@ LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||||
LABEL org.opencontainers.image.title="Lysand Server"
|
LABEL org.opencontainers.image.title="Lysand Server"
|
||||||
LABEL org.opencontainers.image.description="Lysand Server docker image"
|
LABEL org.opencontainers.image.description="Lysand Server docker image"
|
||||||
|
|
||||||
|
# Set current Git commit hash as an environment variable
|
||||||
|
ARG GIT_COMMIT
|
||||||
|
ENV GIT_COMMIT=$GIT_COMMIT
|
||||||
|
|
||||||
# CD to app
|
# CD to app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue