forked from helloworld/continuous-dagster
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (28 loc) · 862 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM python:3.7-slim-buster
# openjdk-11-jre-headless
RUN set -x && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get -y --no-install-recommends install \
vim cron procps gnupg2 \
procps ca-certificates net-tools && \
apt-get clean -y && \
rm -rf \
/var/cache/debconf/* \
/var/lib/apt/lists/* \
/var/log/* \
/tmp/* \
/var/tmp/*
ENV DAGSTER_HOME /var/lib/data/dagster_home
RUN mkdir -p '/var/lib/data/dagster_home'
WORKDIR /app
COPY ./entrypoint.sh /
COPY ./app /app
COPY ./dagster.yaml /var/lib/data/dagster_home/
# COPY ./deploy /deploy
VOLUME [ "/app" ]
COPY requirements.txt requirements.txt
RUN set -x && ( echo; echo "awscli" ) >> requirements.txt && pip install -r requirements.txt
EXPOSE 3000
RUN chmod +x /entrypoint.sh
ENTRYPOINT /entrypoint.sh