Skip to content

Commit 7195278

Browse files
committed
Updating ubuntu image, improving dockerfile caching
1 parent e5d0a0e commit 7195278

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

publishing/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22

33
# Must run from base TWIR directory... makefile takes care of this.
44
WORKDIR /usr/twir
@@ -13,19 +13,19 @@ RUN ln -s /usr/bin/python3.8 /usr/bin/python
1313
COPY requirements.txt .
1414
RUN pip3 install -r requirements.txt
1515

16-
# pelican setup
17-
COPY content content
18-
COPY plugins plugins
19-
COPY themes themes
20-
COPY pelicanconf.py pelicanconf.py
21-
2216
# sass/juice
2317
RUN apt-get install -y curl
2418
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
2519
RUN apt-get install -y nodejs
2620
RUN npm install -g sass
2721
RUN npm install -g juice
2822

23+
# pelican setup
24+
COPY content content
25+
COPY plugins plugins
26+
COPY themes themes
27+
COPY pelicanconf.py pelicanconf.py
28+
2929
COPY publishing/run_server.sh run_server.sh
3030
RUN chmod 777 run_server.sh
3131
COPY publishing/create_html_friendly_page.sh create_html_friendly_page.sh

publishing/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ clean:
3737
rm -rf output/
3838

3939
generate-website: clean
40-
docker run \
40+
docker run -it \
4141
-v $(shell pwd)/output:/usr/twir/output \
4242
twir:latest
4343

4444
generate-email: clean
45-
docker run \
45+
docker run -it \
4646
-e TWIR_NEWSLETTER_THEME=1 \
4747
-v $(shell pwd)/output:/usr/twir/output \
4848
twir:latest
4949

5050
host-content:
51-
docker run \
51+
docker run -it \
5252
-p 8000:8000 \
5353
-v $(shell pwd)/output:/usr/twir/output:ro \
5454
-it \

requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Markdown==3.3.6
2-
pelican==4.7.1
3-
feedgenerator==2.0
4-
pelican-webassets==2.0.0
51
cssmin==0.2.0
2+
feedgenerator==2.0
63
jinja2==2.11.3
74
libsass==0.21.0
5+
Markdown==3.3.6
6+
markupsafe==2.0.1
7+
pelican==4.7.1
8+
pelican-webassets==2.0.0

0 commit comments

Comments
 (0)