Moving the app to a folder called app and changing the Dockerfile to add this "app" folder to the container and build from there rather than to perform a git clone of the repository. This way building from a release will build that release rather than always building the latest version of mailtrain
This commit is contained in:
parent
bc669c1e05
commit
a8d566cb3a
702 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
FROM centos
|
||||
RUN curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -
|
||||
RUN yum install -y git make gcc nodejs ImageMagick && yum clean all
|
||||
RUN git clone git://github.com/Mailtrain-org/mailtrain.git /app
|
||||
ADD app /app
|
||||
WORKDIR /app/
|
||||
ENV NODE_ENV production
|
||||
RUN npm install --no-progress --production && npm install --no-progress passport-ldapjs
|
||||
|
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue