Commit 3407d480 authored by John Red Medrano's avatar John Red Medrano

new method for CI/CD

parent a8ecdca0
This diff is collapsed.
FROM python:3.6
ARG test
# ENV xxx ${test}
ENV port $port
ENV wow2 "from dockerfile"
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ADD . /code
COPY . /code
WORKDIR /code
# RUN echo "Build number: $IMAGE_NAME"
RUN pip install -r requirements/local.txt
EXPOSE 7020
EXPOSE ${export}
# EXPOSE "${export}"
RUN python manage.py migrate
version: '3'
services:
web:
image: dev-rmsv2:latest
build: .
xxx:
# environment:
# - $IMAGE_NAME
# - $wow
env_file:
- test.env
image: red-test
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "7020:8000"
- "${export}:8000"
container_name: dev_rmsv2_api_container
restart: always
ddd:
# environment:
# - $IMAGE_NAME
# - $wow
env_file:
- test.env
image: red-test
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "${export}:8000"
container_name: dev_rmsv2_api_container
restart: always
MY_SECRET_KEY=SOME_SECRET
IMAGE_NAME=wow_red
wow=from_env
export=8080
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment