parent
9fb6a281c7
commit
2c789549f2
@ -0,0 +1,22 @@
|
|||||||
|
# The first instruction is what image we want to base our container on
|
||||||
|
# We Use an official Python runtime as a parent image
|
||||||
|
FROM python:3.9
|
||||||
|
# sudo apt install --no-cache --virtual pkgconf && \
|
||||||
|
# apk add --no-cache mariadb-connector-c-dev && \
|
||||||
|
|
||||||
|
# The enviroment variable ensures that the python output is set straight
|
||||||
|
# to the terminal with out buffering it first
|
||||||
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
|
# create root directory for our project in the container
|
||||||
|
RUN mkdir /jw_servicetracker
|
||||||
|
|
||||||
|
# Set the working directory to /music_service
|
||||||
|
WORKDIR /jw_servicetracker
|
||||||
|
|
||||||
|
# Copy the current directory contents into the container at /music_service
|
||||||
|
ADD . /jw_servicetracker/
|
||||||
|
|
||||||
|
# Install any needed packages specified in requirements.txt
|
||||||
|
# RUN python pip -q install -r requirements.txt
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
jw_inventory:
|
||||||
|
dns:
|
||||||
|
- 8.8.8.8
|
||||||
|
build: .
|
||||||
|
command: bash -c "python manage.py runserver 0.0.0.0:8000"
|
||||||
|
container_name: MeetingOrganizer
|
||||||
|
volumes:
|
||||||
|
- .:/meetingorganizer
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
restart: always
|
||||||
Loading…
Reference in new issue