Skip to content

Commit 9a799d5

Browse files
committed
Optimize docker image a bit
1 parent 77eb618 commit 9a799d5

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docker/Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,17 @@ COPY frontend/dist /app/frontend
3535
COPY global /app/global
3636

3737
WORKDIR /app
38-
RUN yarn install
38+
RUN yarn install \
39+
&& yarn cache clean
3940

4041
# add late to limit cache-busting by modifications
4142
COPY docker/rootfs /
4243

4344
# Remove frontend service not required for prod, dev nginx config as well
44-
RUN rm -rf /etc/services.d/frontend /etc/nginx/conf.d/dev.conf
45-
46-
# Change permission of logrotate config file
47-
RUN chmod 644 /etc/logrotate.d/nginx-proxy-manager
48-
49-
# fix for pip installs
50-
# https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1769
51-
RUN pip uninstall --yes setuptools \
52-
&& pip install "setuptools==58.0.0"
45+
RUN rm -rf /etc/services.d/frontend /etc/nginx/conf.d/dev.conf \
46+
&& chmod 644 /etc/logrotate.d/nginx-proxy-manager \
47+
&& pip uninstall --yes setuptools \
48+
&& pip install --no-cache-dir "setuptools==58.0.0"
5349

5450
VOLUME [ "/data", "/etc/letsencrypt" ]
5551
ENTRYPOINT [ "/init" ]

0 commit comments

Comments
 (0)