-
Andrew Kapuscinski authored
removed EXPOSE cmd in frontend's Dockerfile.dev and added empty dependencies to CI stages that don't need artifacts for efficiency
Andrew Kapuscinski authoredremoved EXPOSE cmd in frontend's Dockerfile.dev and added empty dependencies to CI stages that don't need artifacts for efficiency
Dockerfile.base 847 B
FROM python:3.8-slim
# Get postgres/mysql development stuff in the image
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gcc \
libmariadb-dev-compat \
libpq-dev \
&& rm -rf /var/lib/apt/lists
# Environment variables
# - CAPO_PROFILE will be overridden for Dev, Test, and Prod
ENV PIP_NO_CACHE_DIR false
ENV CAPO_PROFILE docker
ENV CAPO_PATH /home/casa/capo
# Create vlapipe group
RUN addgroup --gid 6000 vlapipe && \
# Create vlapipe user placed in vlapipe group
useradd --create-home --comment "" --gid 6000 --uid 6000 vlapipe
# Switch to appuser
USER vlapipe
# Change working directory to /home/casa/capo
WORKDIR /home/casa/capo
# set ownership of docker.properties to vlapipe and the vlapipe group
COPY --chown=vlapipe:vlapipe docker.properties docker.properties
# Switch to root
USER root