File tree 4 files changed +15
-14
lines changed
4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
- FROM python:2.7.14
1
+ FROM python:3.6.5
2
2
3
3
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
4
4
RUN apt-get install -y \
Original file line number Diff line number Diff line change 1
- FROM python:3.6.5
1
+ FROM python:2.7.14
2
2
3
3
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
4
4
RUN apt-get install -y \
@@ -20,7 +20,7 @@ RUN pip install \
20
20
21
21
ARG SERVERLESS_VERSION
22
22
RUN npm install -g \
23
- serverless@${SERVERLESS_VERSION}
23
+ serverless@${SERVERLESS_VERSION}
24
24
25
25
ARG YARN_VERSION
26
26
RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION}
Original file line number Diff line number Diff line change 1
1
NAME = verypossible/serverless
2
- VERSION = 1.26.1
2
+ VERSION = 1.27.2
3
3
SERVERLESS_VERSION = $(VERSION )
4
- YARN_VERSION = 1.5.1
4
+ YARN_VERSION = 1.6.0
5
5
6
6
.PHONY : all py2 py3 shell
7
7
@@ -10,21 +10,22 @@ all : py2 py3
10
10
11
11
py2 :
12
12
docker build \
13
- -t $(NAME ) :$(VERSION ) \
13
+ -t $(NAME ) :$(VERSION ) -python2 \
14
+ -f Dockerfile-python2 \
14
15
--build-arg SERVERLESS_VERSION=$(SERVERLESS_VERSION ) \
15
16
--build-arg YARN_VERSION=$(YARN_VERSION ) \
16
17
.
17
18
18
19
py3 :
19
20
docker build \
20
- -t $(NAME ) :$(VERSION ) -python3 \
21
- -f Dockerfile-python3 \
21
+ -t $(NAME ) :$(VERSION ) \
22
+ -f Dockerfile \
22
23
--build-arg SERVERLESS_VERSION=$(SERVERLESS_VERSION ) \
23
24
--build-arg YARN_VERSION=$(YARN_VERSION ) \
24
25
.
25
26
26
27
py2-shell :
27
- docker run --rm -it $(NAME ) :$(VERSION ) bash
28
+ docker run --rm -it $(NAME ) :$(VERSION ) -python2 bash
28
29
29
30
py3-shell :
30
- docker run --rm -it $(NAME ) :$(VERSION ) -python3 bash
31
+ docker run --rm -it $(NAME ) :$(VERSION ) bash
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ DOCKERFILE=Dockerfile
3
3
4
4
echo " Building $CACHE_TAG using build hook!"
5
5
6
- if [[ $CACHE_TAG == * " python3 " * ]]; then
7
- DOCKERFILE=Dockerfile-python3
6
+ if [[ $CACHE_TAG == * " python2 " * ]]; then
7
+ DOCKERFILE=Dockerfile-python2
8
8
fi
9
9
10
10
echo " Using $DOCKERFILE for build"
11
11
12
12
docker build \
13
- --build-arg SERVERLESS_VERSION=1.26.1 \
14
- --build-arg YARN_VERSION=1.5.1 \
13
+ --build-arg SERVERLESS_VERSION=1.27.2 \
14
+ --build-arg YARN_VERSION=1.6.0 \
15
15
-f $DOCKERFILE \
16
16
-t $IMAGE_NAME .
You can’t perform that action at this time.
0 commit comments