Skip to content

Commit 81cfce4

Browse files
committed
feat: Improve deployment in production and Render
1 parent c56e9ee commit 81cfce4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docker/images/Dockerfile.prod

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ RUN apt-get update \
1010
&& apt-get install -y --no-install-recommends openrc \
1111
&& apt-get install -y --no-install-recommends build-essential
1212

13+
# Install Node.js and NPM
14+
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
15+
&& apt-get install -y --no-install-recommends nodejs \
16+
&& npm install -g npm@latest
17+
1318
# Clean up
1419
RUN apt-get clean \
1520
&& rm -rf /var/lib/apt/lists/*
@@ -33,13 +38,17 @@ RUN find . -type d -name "__pycache__" -exec rm -r {} + && \
3338
# Copy the wait-for-db.sh script and set execution permissions
3439
COPY --chmod=0755 scripts/wait-for-db.sh ./scripts/
3540

41+
# Create the .moduleignore file with the module 'webhook' inside
42+
RUN echo "webhook" > /app/.moduleignore
43+
3644
# Update pip
3745
RUN pip install --no-cache-dir --upgrade pip
3846

3947
# Install any needed packages specified in requirements.txt
4048
RUN pip install -r requirements.txt
4149

4250
# Install Rosemary
51+
COPY setup.py .
4352
RUN pip install -e ./
4453

4554
# Install npm dependencies

docker/images/Dockerfile.render

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ RUN apt-get update \
1010
&& apt-get install -y --no-install-recommends openrc \
1111
&& apt-get install -y --no-install-recommends build-essential
1212

13+
# Install Node.js and NPM
14+
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
15+
&& apt-get install -y --no-install-recommends nodejs \
16+
&& npm install -g npm@latest
17+
1318
# Clean up
1419
RUN apt-get clean \
1520
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)