<|start_filename|>Makefile<|end_filename|>
IMAGE_NAME := gcr.io/buffer-data/carden:0.2.1

all: run

build:
	docker build -t $(IMAGE_NAME) .

run: build
	docker run -it --rm -v ~/.config/gcloud/:/root/.config/gcloud --env-file .env $(IMAGE_NAME)

dev: build
	docker run -it --rm -v ~/.config/gcloud/:/root/.config/gcloud -v $(PWD):/app --env-file .env $(IMAGE_NAME) /bin/bash

push: build
	docker push $(IMAGE_NAME)


<|start_filename|>Dockerfile<|end_filename|>
FROM python:3

RUN pip install pymongo dnspython google-cloud-bigquery stacklogging

ADD main.py /app/

WORKDIR /app

CMD ["python", "main.py"]
