/
Dockerfile
49 lines (31 loc) · 869 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
38
39
40
41
42
43
44
45
46
47
48
49
FROM node:14
WORKDIR /app
COPY package.json .
COPY scripts .
COPY . .
RUN pwd
RUN ls
RUN ls scripts
RUN echo "$PWD" && chmod 777 scripts/start_tests.sh
ENTRYPOINT ["scripts/start_tests.sh"]
# docker build -t docker-sample .
# docker build -t docker-sample --progress=plain --no-cache .
# docker run -it -p 8080:3000 docker-sample
# docker run -it -v ${PWD}:/project -p 8080:3000 docker-sample
#FROM ubuntu:latest
#USER root
#WORKDIR /app
#COPY package.json .
#RUN apt-get update
#RUN apt-get -y install curl gnupg
#RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
#RUN apt-get -y install nodejs
#RUN apt-get install -y build-essential
#RUN npm install --legacy-peer-deps
#RUN npm install yarn
#COPY . .
#RUN yarn test:pact
#CMD ["npm", "start"]
#EXPOSE 8082
## docker build -t docker-sample .
## docker run -it -p 8082:3000 docker-sample