update container

This commit is contained in:
CatDeployed 2018-06-16 15:18:38 -04:00
parent 4ed5a562ec
commit 37730306ef
3 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,7 @@ RUN apt-get -y update \
&& useradd -r -d /opt/postal -s /bin/bash postal \
&& chown -R postal:postal /opt/postal/ \
&& /opt/postal/bin/postal bundle /opt/postal/vendor/bundle \
&& apt-get -y purge python-dev git-core python-setuptools \
&& apt-get -y purge python-dev git-core \
&& apt-get -y autoremove \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

View File

@ -1,7 +1,8 @@
version: "3"
services:
postal:
image: catdeployed/postal:dev
build: .
#image: catdeployed/postal:dev
container_name: postal
command: run
ports:
@ -12,7 +13,7 @@ services:
volumes:
- static_assets:/opt/postal/public
- ./data/postal/assets:/opt/postal/public/assets
- ./data/postal/config:/opt/postal/config
- ./src/templates/:/templates
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=postal

View File

@ -10,6 +10,7 @@ if [ ! -f /opt/postal/config/postal.yml ] || [[ $(cat /opt/postal/config/postal.
## Generate config and keys
/opt/postal/bin/postal initialize-config
fi
cat /opt/postal/config/postal.yml
## Clean Up
rm -rf /opt/postal/tmp/pids/*