Files
AWS-Weather/Dockerfile

21 lines
569 B
Docker

FROM python:3.13-rc-alpine3.19
# Upgrade alpine OS
RUN apk update && apk upgrade
# Create log dir and file
RUN mkdir /results
# Go to application directoy and copy code
WORKDIR /app
COPY requirements.txt requirements.txt
COPY main.py main.py
COPY src/. /app/src/
# Upgrade pip version
RUN pip3 install --upgrade pip
# Install python packages
RUN pip3 install -r requirements.txt
#Call python code
CMD ["python", "-m", "main"]
#sudo docker run --rm -d -p 3159:3159/udp -v /tmp/omada_logs/:/omada_logs/ jacob/udp_server
# /volume1/Docker/wheather_api/results:/results/