Skip to content

Commit 8ad0976

Browse files
authored
🎨 simplify Dockerfile, combining paper and page generation, removing one build step (#39)
1 parent 49e6313 commit 8ad0976

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
FROM python:3-alpine as publications
1+
FROM python:3-alpine as build
22
WORKDIR /opt
3-
RUN mkdir /opt/content
3+
COPY . .
4+
45
RUN pip install pyorcid
5-
COPY generate-papers-page.py .
66
RUN python generate-papers-page.py
77

8-
9-
10-
FROM alpine:latest as build
11-
WORKDIR /opt
128
RUN apk add --no-cache hugo
13-
14-
COPY . .
15-
COPY --from=publications /opt/content/publications.md /opt/content/publications.md
169
RUN hugo
1710

1811

0 commit comments

Comments
 (0)