Skip to content

Commit 8c0326f

Browse files
committed
Clean up Dockerfile and prod environment config
1 parent ec6f591 commit 8c0326f

File tree

2 files changed

+1
-556
lines changed

2 files changed

+1
-556
lines changed

Dockerfile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,9 @@ WORKDIR /app
1919
# add a .env.local if the user doesn't bind a volume to it
2020
RUN touch /app/.env.local
2121

22-
23-
2422
USER root
25-
26-
RUN mkdir -p /data/models
27-
RUN chown -R 1000:1000 /data/models
28-
2923
RUN apt-get update
30-
RUN apt-get install gnupg curl git cmake clang libgomp1 -y
31-
24+
RUN apt-get install -y libgomp1
3225

3326
# ensure npm cache dir exists before adjusting ownership
3427
RUN mkdir -p /home/user/.npm && chown -R 1000:1000 /home/user/.npm
@@ -38,7 +31,6 @@ USER user
3831

3932
COPY --chown=1000 .env /app/.env
4033
COPY --chown=1000 entrypoint.sh /app/entrypoint.sh
41-
COPY --chown=1000 gcp-*.json /app/
4234
COPY --chown=1000 package.json /app/package.json
4335
COPY --chown=1000 package-lock.json /app/package-lock.json
4436

@@ -94,7 +86,6 @@ ARG PUBLIC_APP_COLOR=blue
9486
ARG PUBLIC_COMMIT_SHA=
9587
ENV PUBLIC_COMMIT_SHA=${PUBLIC_COMMIT_SHA}
9688
ENV BODY_SIZE_LIMIT=15728640
97-
ENV MODELS_STORAGE_PATH=/data/models
9889

9990
#import the build & dependencies
10091
COPY --from=builder --chown=1000 /app/build /app/build

0 commit comments

Comments
 (0)