Add lambda function to write json to dynamo db
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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/
|
||||
Reference in New Issue
Block a user