Skip to content

Commit

Permalink
minimize docker image (denghongcai#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuudi committed Dec 11, 2020
1 parent a80cb6c commit bc635df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:latest
FROM node:lts-alpine
MAINTAINER Hongcai Deng <admin@dhchouse.com>

RUN apt-get clean all
RUN apt-get update
RUN apt-get -y install git
RUN git clone https://github.com/denghongcai/forsaken-mail.git /forsaken-mail

WORKDIR /forsaken-mail

RUN npm install
RUN wget https://github.com/denghongcai/forsaken-mail/archive/master.tar.gz -q -O /tmp/forsaken-mail-master.tar.gz \
&& tar zxf /tmp/forsaken-mail-master.tar.gz -C /tmp \
&& mv /tmp/forsaken-mail-master/* /forsaken-mail \
&& rm /tmp/forsaken-mail-master.tar.gz \
&& npm install --production \
&& npm cache clean --force

EXPOSE 25
EXPOSE 3000
CMD npm start
CMD ["npm", "start"]

0 comments on commit bc635df

Please sign in to comment.