-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile
52 lines (38 loc) · 1.84 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:20.04
USER root
# DO NOT ADD AS ENV:
# debconf noninteractive
# This is the anti-frontend. It never interacts with you at all,
# and makes the default answers be used for all questions. It
# might mail error messages to root, but that's it; otherwise it
# is completely silent and unobtrusive, a perfect frontend for
# automatic installs. If you are using this front-end, and require
# non-default answers to questions, you will need to preseed the
# debconf database; see the section below on Unattended Package
# Installation for more details.
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
apt-get update -y && apt-get install -y git curl wget unzip software-properties-common
SHELL ["/bin/bash", "-c"]
ENV NODE_VERSION 18.14.0
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash \
&& . $HOME/.nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION \
&& npm install --global cdktf-cli@latest
ENV NODE_PATH /root/.nvm/versions/node/v$NODE_VERSION/lib/node_modules
ENV PATH /root/.nvm/versions/node/v$NODE_VERSION/bin:$PATH
ENV NVM_DIR /root/.nvm
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get install -y python3.9 python3-pip python3.9-distutils && ln -s /usr/bin/python3.9 /usr/bin/python
ARG CACHEBUST=1
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.9 get-pip.py && \
ln -s /usr/local/bin/pip3.9 /usr/bin/pip3 && \
ln -s /usr/local/bin/pip3.9 /usr/bin/pip
RUN python -m pip install -U pip && pip install -U setuptools poetry
WORKDIR /brickflow
COPY . .
VOLUME ["/brickflow", "$(pwd)"]
RUN poetry install
CMD ["/bin/bash"]