Skip to content

Commit 2356069

Browse files
committed
First OSS commit 🚀
0 parents  commit 2356069

35 files changed

+5095
-0
lines changed

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
static/social.png
2+
static/banner_sample.png
3+
avatar.png
4+
__pycache__

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
static/social.png
2+
avatar.png
3+
__pycache__
4+
.vscode

ATTRIBUTION.md

+758
Large diffs are not rendered by default.

Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM public.ecr.aws/amazonlinux/amazonlinux:2
2+
3+
ENV PATH=/usr/local/bin:$PATH \
4+
LC_ALL=C.UTF-8 \
5+
LANG=C.UTF-8 \
6+
WEB_CONCURRENCY=2
7+
8+
EXPOSE 8000
9+
WORKDIR /srv
10+
COPY . /srv
11+
12+
RUN yum update -y \
13+
&& amazon-linux-extras enable python3.8 \
14+
&& yum install -y \
15+
pycairo \
16+
python3.8 \
17+
&& python3.8 -m pip install pip --upgrade \
18+
&& ln -s /usr/local/bin/pip3 /usr/bin/pip3 \
19+
&& ln -s /usr/bin/pydoc3.8 /usr/local/bin/pydoc \
20+
&& ln -s /usr/bin/python3.8 /usr/local/bin/python \
21+
&& ln -s /usr/bin/python3.8-config /usr/local/bin/python-config \
22+
&& yum -y clean all --enablerepo='*' \
23+
&& rm -rf /var/cache/yum
24+
25+
RUN pip3 install -r requirements.txt
26+
27+
CMD ["python", "./app.py"]

LICENSE

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
4+
software and associated documentation files (the "Software"), to deal in the Software
5+
without restriction, including without limitation the rights to use, copy, modify,
6+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7+
permit persons to whom the Software is furnished to do so.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
10+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
11+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
12+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
13+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
14+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)