From 0aef04f737e7d3f947caf29be60da182e62ed395 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 12 Sep 2020 11:30:17 -0500 Subject: [PATCH] Fixing prod dockerfile. --- docker/prod/Dockerfile | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index cc0f8733e..2ba5bca70 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -36,18 +36,6 @@ WORKDIR /app COPY --chown=rust:rust docs ./docs RUN mdbook build docs/ -FROM node:12-buster as node - -WORKDIR /app/ui - -# Cache deps -COPY ui/package.json ui/yarn.lock ./ -RUN yarn install --pure-lockfile --network-timeout 600000 - -# Build -COPY ui /app/ui -RUN yarn build - FROM alpine:3.12 as lemmy # Install libpq for postgres @@ -62,8 +50,7 @@ RUN adduser -D -s /bin/sh -u 1000 -G lemmy lemmy # Copy resources COPY --chown=lemmy:lemmy config/defaults.hjson /config/defaults.hjson COPY --chown=lemmy:lemmy --from=rust /app/server/lemmy_server /app/lemmy -COPY --chown=lemmy:lemmy --from=docs /app/docs/book/ /app/dist/documentation/ -COPY --chown=lemmy:lemmy --from=node /app/ui/dist /app/dist +COPY --chown=lemmy:lemmy --from=docs /app/docs/book/ /app/documentation/ RUN chown lemmy:lemmy /app/lemmy USER lemmy