Skip to content

Commit

Permalink
chore: copy .env to container
Browse files Browse the repository at this point in the history
  • Loading branch information
tinovyatkin committed Jan 28, 2025
1 parent 4b0baf3 commit 910c515
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ComfyUI/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV PYTHONUNBUFFERED=1
# Speed up some cmake builds
ENV CMAKE_BUILD_PARALLEL_LEVEL=8


# The installer requires curl (and certificates) to download the release archive
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
Expand All @@ -29,6 +30,7 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Download and install nvm:
ENV NODE_VERSION 20.18.0
ENV NVM_DIR /usr/local/nvm
ENV NODE_OPTIONS --enable-source-maps --experimental-websocket --experimental-require-module
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
RUN . $NVM_DIR/nvm.sh \
Expand All @@ -47,13 +49,17 @@ ADD https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubun
RUN dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \
rm libssl1.1_1.1.0g-2ubuntu4_amd64.deb

ENV LOG_LEVEL trace
ENV INPUT_DATA_FOLDER /sp/inputs

# Add and build Node.js app
WORKDIR /opt/app
COPY src src
COPY package.json package.json
COPY package-lock.json package-lock.json
COPY tsconfig.json tsconfig.json
COPY tsconfig.build.json tsconfig.build.json
COPY .env .env
RUN --mount=type=cache,target=/root/.npm \
npm ci && \
npm run build &&\
Expand Down

0 comments on commit 910c515

Please sign in to comment.