Make Docker images smaller by messing up Dockerfile

This commit is contained in:
ereti
2021-11-03 00:13:14 +00:00
parent 6cbfd2bfe9
commit aac1675f77
+2 -4
View File
@@ -1,8 +1,6 @@
FROM node
RUN apt-get update
WORKDIR /app
RUN apt-get install -y sendmail
RUN npm install -g pnpm
COPY . /app
RUN pnpm i
RUN apt-get update && apt-get install -y sendmail && rm -rf /var/lib/apt/lists/*
RUN npm install -g pnpm && pnpm i
CMD ./hosts.sh && service sendmail start && pnpm start