Skip to content

Commit 131b0a8

Browse files
CU-85zt0e0vw add emails to docker builds
1 parent e624955 commit 131b0a8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
FROM node:16 as emails
2+
3+
RUN mkdir build
4+
WORKDIR /build
5+
6+
COPY ./scripts ./scripts
7+
8+
RUN ["chmod", "+x", "./scripts/build-emails.sh"]
9+
RUN bash ./scripts/build-emails.sh
10+
111
FROM python:3.9
212

313
RUN apt update --no-install-recommends -y
@@ -18,9 +28,12 @@ WORKDIR /procollab
1828

1929
COPY poetry.lock pyproject.toml /procollab/
2030

31+
2132
RUN poetry config virtualenvs.create false \
2233
&& poetry install --no-root
2334

35+
COPY --from=emails /email ./emails/
36+
2437
EXPOSE 8000
2538

2639
RUN mkdir /procollab/staticfiles

scripts/build-emails.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# - node^16
77

88
cd ..
9-
git clone git@github.com:PROCOLLAB-github/emails.git
9+
git clone https://github.com/PROCOLLAB-github/emails.git
1010
cd emails || exit
1111

1212
npm ci

0 commit comments

Comments
 (0)