Skip to content

Commit

Permalink
feat: Improve deployment in production and Render
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Oct 24, 2024
1 parent c56e9ee commit 81cfce4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/images/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends openrc \
&& apt-get install -y --no-install-recommends build-essential

# Install Node.js and NPM
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g npm@latest

# Clean up
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -33,13 +38,17 @@ RUN find . -type d -name "__pycache__" -exec rm -r {} + && \
# Copy the wait-for-db.sh script and set execution permissions
COPY --chmod=0755 scripts/wait-for-db.sh ./scripts/

# Create the .moduleignore file with the module 'webhook' inside
RUN echo "webhook" > /app/.moduleignore

# Update pip
RUN pip install --no-cache-dir --upgrade pip

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

# Install Rosemary
COPY setup.py .
RUN pip install -e ./

# Install npm dependencies
Expand Down
5 changes: 5 additions & 0 deletions docker/images/Dockerfile.render
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends openrc \
&& apt-get install -y --no-install-recommends build-essential

# Install Node.js and NPM
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g npm@latest

# Clean up
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 81cfce4

Please sign in to comment.