Update Dockerfile and user-data for AWS LC use

This commit is contained in:
Dustin Pianalto 2019-12-23 19:38:49 -09:00
parent 48621aac95
commit db17e16351
2 changed files with 14 additions and 5 deletions

View File

@ -29,11 +29,11 @@ RUN pip install virtualenv
WORKDIR /code
COPY requirements/base.txt .
COPY requirements/production.txt .
COPY requirements/geeksbot.txt .
COPY .env .
COPY entrypoint .
COPY /code/geeksbot_v2/requirements/base.txt .
COPY /code/geeksbot_v2/requirements/production.txt .
COPY /code/geeksbot_v2/requirements/geeksbot.txt .
COPY /code/geeksbot_v2/.env .
COPY /code/geeksbot_v2/entrypoint .
RUN pip install -r production.txt
RUN pip install -r geeksbot.txt

9
user-data.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
yum update -y
mkdir /code || exit
cd /code || exit
git clone git@github.com:dustinpianalto/geeksbot_v2.git
cd geeksbot_v2 || exit
docker build . -t geeksbot || exit
docker run -d -v /code/geeksbot_v2/geeksbot:/code/geeksbot --name geeksbot --restart always geeksbot:latest || exit