Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit f943ade

Browse files
committed
[docker] removed gcc as it's not needed so far. wheel install cloudstate inside the image.
1 parent d4114db commit f943ade

4 files changed

Lines changed: 17 additions & 10 deletions

File tree

cloudstate/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
21
# -*- coding: utf-8 -*-
32

43
"""
4+
Copyright 2020 Lightbend Inc.
55
Licensed under the Apache License, Version 2.0.
66
"""
77

8-
__version__ = "0.5.0"
8+
__version__ = "0.5.0"

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
Copyright 2020 Lightbend Inc.
3+
Licensed under the Apache License, Version 2.0.
4+
"""
5+
16
from setuptools import setup, find_packages
27

38
# Load version in cloudstate package.
@@ -14,4 +19,4 @@
1419
description='Cloudstate Python Support Library',
1520
packages=find_packages(exclude=['tests', 'shoppingcart']),
1621
long_description=open('README.md').read(),
17-
zip_safe=False)
22+
zip_safe=False)

shoppingcart/Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
FROM python:3.8.0-slim
22

3-
COPY . /app
4-
RUN apt-get update \
5-
&& apt-get install gcc -y \
6-
&& apt-get clean
3+
COPY ./dist /dist
4+
RUN pip install /dist/cloudstate-0.5.0-py3-none-any.whl
75

8-
WORKDIR app
9-
RUN pip install --user -r requirements.txt
10-
ENTRYPOINT python shopping_cart.py
6+
WORKDIR /app
7+
COPY ./shoppingcart ./shoppingcart
8+
ENV PYTHONPATH=/app
9+
ENTRYPOINT python ./shoppingcart/shopping_cart.py

tck/build_tck_docker_image.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
3+
docker build -t gcr.io/mrcllnz/cloudstate-python-tck -f shoppingcart/Dockerfile .

0 commit comments

Comments
 (0)