@@ -69,9 +69,7 @@ COPY specify7_config /usr/local/specify_config
69
69
70
70
# Get Specify 7
71
71
RUN cd /usr/local/ \
72
- && git clone https://github.com/specify/specify7/ \
73
- && cd specify7 \
74
- && git checkout workbench-upload
72
+ && git clone https://github.com/specify/specify7/
75
73
WORKDIR /usr/local/specify7
76
74
77
75
# convert line endings
@@ -83,8 +81,7 @@ RUN ln -sf /usr/local/specify_config/local_specify_settings.py ./specifyweb/sett
83
81
84
82
# install virtual environment
85
83
RUN python3.6 -m venv ve \
86
- && ve/bin/pip install --no-cache-dir -r requirements.txt \
87
- && ve/bin/pip install celery
84
+ && ve/bin/pip install --no-cache-dir -r requirements.txt
88
85
89
86
# copy specify6 installation
90
87
COPY specify6_thick_client /usr/local/specify6
@@ -127,14 +124,12 @@ VOLUME [ "/usr/local/specify_config" ]
127
124
128
125
# Clone repository
129
126
RUN cd /usr/local/ \
130
- && git clone https://github.com/specify/web-asset-server/ \
131
- && cd web-asset-server \
132
- && git checkout development
127
+ && git clone https://github.com/specify/web-asset-server/
133
128
134
129
WORKDIR /usr/local/web-asset-server/
135
130
136
131
# Get ExifRead, Paste and sh
137
- RUN pip3 install -r requirements.txt
132
+ RUN pip install -r requirements.txt
138
133
139
134
# disable security since container is going to be isolated
140
135
RUN sed -i "s/'test_attachment_key'/None/" settings.py
@@ -145,18 +140,12 @@ RUN sed -i "s/wsgiref/paste/" settings.py
145
140
# change port to 8081
146
141
RUN sed -i "s/8080/8081/" settings.py
147
142
148
- # allow ImageMagick to create thumbnails for PDF files
149
- RUN sed -i "s/<policy domain=\" coder\" rights=\" none\" pattern=\" PDF\" \/ >/<policy domain=\" coder\" rights=\" read|write\" pattern=\" PDF\" \/ ><policy domain=\" coder\" rights=\" read|write\" pattern=\" LABEL\" \/ >/" /etc/ImageMagick-6/policy.xml
150
-
151
-
152
-
153
- # create a direcory for attachments
143
+ # create a direcory for attachments # TODO: test if this is needed <<<<<<<<<<<<<<<<<
154
144
RUN mkdir -p /home/specify/attachments/
155
145
156
146
157
- CMD /etc/init.d/apache2 start -DFOREGROUND \
158
- && python3 server.py
159
- # CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"]
147
+ CMD /etc/init.d/apache2 start \
148
+ && python server.py
160
149
161
150
162
151
0 commit comments