forked from denghongcai/forsaken-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minimize docker image (denghongcai#9)
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |