-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 798 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 798 Bytes
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
FROM ubuntu:20.04
ENV NODE_VERSION=14.21.3
RUN apt update && apt install -y curl wget
#COPY SOURCES
COPY . ./app
#INSTALL NODE
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
#INSTALL STACK AND LIGO
RUN curl -sSL https://get.haskellstack.org/ | sh
RUN wget https://gitlab.com/ligolang/ligo/-/jobs/2702841321/artifacts/raw/ligo
RUN chmod +x ./ligo && cp ./ligo /usr/local/bin
#GENERATE CONTRACTS
RUN cd app/ligo && make all
#RUN NODE API
WORKDIR /app
RUN npm i
EXPOSE 3500
CMD [ "npm", "start" ]