Add Dockerfiles for test and prod

This commit is contained in:
Devon Mackay
2018-07-01 21:01:27 -04:00
parent 5cff9fbfcc
commit f9a8fab4a5
3 changed files with 99 additions and 0 deletions

32
docker/tester/Dockerfile Normal file
View File

@@ -0,0 +1,32 @@
FROM atat-app-builder-builder:latest as app-builder
ARG APP_USER=atst
ARG APP_GROUP=atat
ARG APP_DIR=/opt/atat/atst
ARG CIBUILD=true
ENV SKIP_PIPENV true
# 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
# 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"]