(fix): grabbing envs from $env was a mistake

This commit is contained in:
Shahrad Elahi
2023-11-08 01:36:32 +03:30
parent 51929b3568
commit 1f189a710e
6 changed files with 25 additions and 22 deletions

View File

@@ -5,10 +5,6 @@ WORKDIR /app
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
COPY --from=chriswayg/tor-alpine:latest /usr/local/bin/obfs4proxy /usr/local/bin/obfs4proxy
COPY --from=chriswayg/tor-alpine:latest /usr/local/bin/meek-server /usr/local/bin/meek-server
@@ -40,6 +36,10 @@ RUN rm -rf /var/cache/apk/*
FROM base AS deps
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN mkdir -p /temp/dev/
COPY web/package.json web/pnpm-lock.yaml /temp/dev/