Merge pull request #643 from am97/main

Build optimizations
This commit is contained in:
Abhilash Raj
2023-11-13 20:23:47 +05:30
committed by GitHub
6 changed files with 39 additions and 35 deletions

View File

@@ -2,9 +2,6 @@
# Use 3.15 for Core since it has Python 3.9
FROM alpine:3.18
#Add startup script to container
COPY docker-entrypoint.sh /usr/local/bin/
# Add requirements file.
COPY requirements.txt /tmp/
@@ -25,6 +22,9 @@ RUN --mount=type=cache,target=/root/.cache \
&& apk del build-deps \
&& adduser -S mailman
#Add startup script to container
COPY docker-entrypoint.sh /usr/local/bin/
# Change the working directory.
WORKDIR /opt/mailman

View File

@@ -2,14 +2,10 @@
# Use 3.15 for Core since it has Python 3.9
FROM alpine:3.18
#Add startup script to container
COPY docker-entrypoint.sh /usr/local/bin/
# Set the commits that we are building.
ARG CORE_REF
ARG MM3_HK_REF
#Install all required packages, add user for executing mailman and set execution
#rights for startup script
RUN --mount=type=cache,target=/root/.cache \
@@ -26,6 +22,9 @@ RUN --mount=type=cache,target=/root/.cache \
&& apk del build-deps \
&& adduser -S mailman
#Add startup script to container
COPY docker-entrypoint.sh /usr/local/bin/
# Change the working directory.
WORKDIR /opt/mailman