File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
2
python :
3
- - " 3.6 "
3
+ - " 3.7 "
4
4
5
5
install :
6
6
- " pip install -r requirements.txt"
Original file line number Diff line number Diff line change 1
- FROM python:3.6-stretch
1
+ FROM python:3.7-slim-buster
2
2
MAINTAINER Devin Matte <matted@csh.rit.edu>
3
3
4
- RUN mkdir /opt/packet
4
+ RUN apt-get -yq update && \
5
+ apt-get -yq --no-install-recommends install gcc curl libsasl2-dev libldap2-dev libssl-dev && \
6
+ apt-get -yq clean all
5
7
6
- ADD requirements.txt /opt/packet
8
+ RUN mkdir /opt/packet
7
9
8
10
WORKDIR /opt/packet
9
11
10
- RUN apt-get -yq update && \
11
- apt-get -yq --allow-unauthenticated install libsasl2-dev libldap2-dev libssl-dev && \
12
- pip install -r requirements.txt && \
13
- apt-get -yq clean all
12
+ COPY requirements.txt /opt/packet
13
+
14
+ RUN pip install -r requirements.txt
14
15
15
- ADD . /opt/packet
16
+ COPY . /opt/packet
16
17
17
18
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
18
19
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
19
20
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
20
21
apt-get -yq update && \
21
- apt-get -yq install nodejs npm yarn && \
22
+ apt-get -yq --no- install-recommends install nodejs yarn && \
22
23
yarn install && \
23
24
npm install -g gulp && \
24
25
gulp production && \
25
26
rm -rf node_modules && \
26
27
apt-get -yq remove nodejs npm yarn && \
28
+ apt-get -yq autoremove && \
27
29
apt-get -yq clean all
28
30
29
31
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
Original file line number Diff line number Diff line change 1
1
# CSH Web Packet
2
2
3
- [ ![ Python 3.6 ] ( https://img.shields.io/badge/python-3.6 -blue.svg )] ( https://www.python.org/downloads/release/python-360 / )
3
+ [ ![ Python 3.7 ] ( https://img.shields.io/badge/python-3.7 -blue.svg )] ( https://www.python.org/downloads/release/python-370 / )
4
4
[ ![ Build Status] ( https://travis-ci.com/ComputerScienceHouse/packet.svg?branch=develop )] ( https://travis-ci.com/ComputerScienceHouse/packet )
5
5
6
6
Packet is used by CSH to facilitate the freshmen packet portion of our introductory member evaluation process. This is
7
7
the second major iteration of packet on the web. The first version was
8
8
[ Tal packet] ( https://github.com/TalCohen/CSHWebPacket ) .
9
9
10
10
## Setup
11
- ** Requires Python 3.6 or newer.**
11
+ ** Requires Python 3.7 or newer.**
12
12
13
13
To get the server working you'll just need the Python dependencies and some secrets. There will be some UI issues due
14
14
to missing assets though. To solve that you'll want to set up the front end dependencies or download a copy of the
You can’t perform that action at this time.
0 commit comments