Removing gcc from prod but adding it to the build env because we lint there

This commit is contained in:
Luke Robles 2018-10-14 09:38:58 -07:00
parent a2c7f0a65e
commit f5d413398a
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ stages:
linting:
stage: linting
before_script:
- apk add --no-cache python3
- apk add --no-cache python3 build-base
- pip3 install pylint
- pip3 install -r app/requirements.txt
script:

View File

@ -1,7 +1,7 @@
FROM python:3.6.2-alpine3.6
ADD app/requirements.txt /requirements.txt
RUN apk update && \
apk add --no-cache vim docker && \
apk add --no-cache vim docker build-base && \
pip install -U pip && \
pip install pylint && \
pip install -r requirements.txt

View File

@ -75,5 +75,5 @@ def get_weather(message):
ind += 1
return forecast_str
except exceptions.not_found_error.NotFoundError:
except Exception:
return 'Please input a valid location'