Files
atst/docker/tester/Dockerfile
Devon Mackay 08a5a4d8d6 Rearranging
2018-07-03 11:01:55 -04:00

34 lines
633 B
Docker

FROM registry.atat.codes:443/atat-app-builder:latest
ARG APP_USER=atst
ARG APP_GROUP=atat
ARG APP_DIR=/opt/atat/atst
ARG CIBUILD=true
ENV SKIP_PIPENV true
# Use dumb-init for proper signal handling
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
# Default command is to run all the tests
CMD ["${APP_DIR}/script/cibuild"]
# Create application directory
RUN set -x ; \
mkdir -p ${APP_DIR}
# Set working dir
WORKDIR ${APP_DIR}
# Copy app and module files
COPY . .
# Add required system packages and app user
RUN set -x ; \
script/alpine_setup "${APP_USER}" "${APP_GROUP}"
# Install app dependencies
RUN set -x ; \
script/setup