Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM ubuntu:20.04
COPY ./ /usr/src

RUN apt-get update && \
apt-get install -y \
build-essential python3 python3-dev python3-pip librdkafka-dev
FROM python:3.9

EXPOSE 80
COPY ./ /usr/src

# Intall package feathr
WORKDIR /usr/src/feathr_project
RUN python3 -m pip install -e .
RUN pip install -e .

# Install packages in requirements.txt
WORKDIR /usr/src/feathr_project/feathr/api
RUN pip3 install -r requirements.txt
RUN pip install -r requirements.txt

# Start web server
CMD [ "uvicorn","app.main:app","--host", "0.0.0.0", "--port", "80" ]