Skip to content

Commit

Permalink
renovate and migrate application to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
shaoye committed Apr 12, 2021
1 parent b4da33d commit 3cfc580
Show file tree
Hide file tree
Showing 15 changed files with 515 additions and 537 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
composer.phar
/vendor/
.DS_Store

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

Generate iCalendar file (.ics) through [NJUPT-API](https://github.com/gaoliang/NJUPT-API)

## 测试地址
> 已支持2020春期
> 2020-02-17

[Demo Server](http://47.101.209.145)
## [Demo Server](http://106.53.120.56)

> 已支持2021春期
> 2021-03-08
![](demo.gif)

# 安装
## 安装 & 运行

```
composer install
docker-compose up
```


Expand Down
17 changes: 17 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.7-alpine

WORKDIR /api

ENV FLASK_APP=api.py

ENV FLASK_RUN_HOST=0.0.0.0

RUN apk add gcc libc-dev jpeg-dev zlib-dev libxml2 libxslt-dev

RUN pip install flask pytz njupt

EXPOSE 5000

COPY . .

CMD ["flask", "run"]
File renamed without changes.
300 changes: 0 additions & 300 deletions composer.lock

This file was deleted.

21 changes: 0 additions & 21 deletions courses/Pipfile

This file was deleted.

Loading

0 comments on commit 3cfc580

Please sign in to comment.