make changes to Dockefiles and add new dockerfiles for stack-compose to you since swarm can't build from docker images

This commit is contained in:
Jonathan Math 2020-12-07 21:08:33 -05:00
parent 44f9bec7ee
commit 698da6f2f4
5 changed files with 43 additions and 2 deletions

View file

@ -6,4 +6,5 @@ WORKDIR /srv/newsblur
RUN /bin/bash -c 'echo "ENABLED=1" | tee /etc/default/haproxy'
RUN /bin/bash -c 'mkdir -p /srv/newsblur/config/certificates/'
COPY 'config/haproxy_rsyslog.conf' '/etc/rsyslog.d/49-haproxy.conf'
COPY 'config/haproxy_rsyslog.conf' '/etc/rsyslog.d/49-haproxy.conf'
COPY './docker/haproxy/haproxy.conf /usr/local/etc/haproxy/haproxy.cfg'

View file

@ -29,4 +29,5 @@ RUN set -ex \
&& apt-get install -y $rundDeps $buildDeps --no-install-recommends \
&& pip install -r requirements.txt \
&& apt-get purge -y --auto-remove ${buildDeps} \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
COPY ./config /etc/supervisor/conf.d/

2
docker/nginx/Dockerfile Normal file
View file

@ -0,0 +1,2 @@
FROM nginx:latest
COPY ./docker/nginx /etc/nginx/conf.d

View file

@ -0,0 +1,34 @@
FROM node:14.4.0
WORKDIR /usr/src/app
RUN set -ex \
&& rundDeps=' \
libpq5 \
libjpeg62 \
libxslt1.1 \
' \
&& buildDeps=' \
patch \
python-dev \
gfortran \
lib32ncurses5-dev \
libblas-dev \
libffi-dev \
libjpeg-dev \
default-libmysqlclient-dev \
libpq-dev \
libreadline6-dev \
liblapack-dev \
libxml2-dev \
libxslt1-dev \
ncurses-dev \
zlib1g-dev \
' \
&& apt-get update \
&& apt-get install -y $rundDeps $buildDeps --no-install-recommends \
&& apt-get purge -y --auto-remove ${buildDeps} \
&& rm -rf /var/lib/apt/lists/*
COPY ./node/package.json /usr/src/app/package.json
COPY ./node/package-lock.json /usr/src/app/package-lock.json
COPY ./node /usr/src/app/
RUN npm install

3
docker/redis/Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM redis:3
COPY ./config/redis.conf /usr/local/etc/redis_server.conf
COPY ./config/redis_docker.conf /etc/redis_server.conf