File tree Expand file tree Collapse file tree 4 files changed +10
-33
lines changed Expand file tree Collapse file tree 4 files changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ jobs:
4545 script : |
4646 return {
4747 inspect_image: [
48- 'test_project_node ',
48+ 'test_project_scratch ',
4949 'hello-world',
5050 ],
5151 include: [
5252 {
53- inspect_image: 'test_project_node ',
53+ inspect_image: 'test_project_scratch ',
5454 prepare_command: 'docker-compose -f test_project/docker-compose.yml -p test_project pull',
5555 build_command: 'docker-compose -f test_project/docker-compose.yml -p test_project build',
5656 }, {
Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ class LayerCache {
2626 }
2727
2828 async exec ( command : string , args ?: string [ ] , options ?: ExecOptions ) {
29- const argsStr = args != null ? args . join ( ' ' ) : ''
30- core . startGroup ( `${ command } ${ argsStr } ` )
3129 const result = await exec . exec ( command , args , options )
32- core . endGroup ( )
3330
3431 return result
3532 }
Original file line number Diff line number Diff line change 1- FROM node:12-alpine as curl-env
2- RUN set -x \
3- apk update && \
4- apk add curl && \
5- mkdir -p /src && \
6- curl -o /src/install.sh -L https://yarnpkg.com/install.sh && \
7- chmod +x /src/install.sh && \
8- apk del curl
1+ FROM alpine AS data
2+ RUN date > /now.txt
93
10- FROM node:12-alpine
11-
12- COPY --from=curl-env /src/install.sh /tmp/install.sh
13- RUN set -x \
14- apk update && \
15- apk add curl && \
16- /tmp/install.sh && \
17- apk del curl
18-
19- WORKDIR /app
20- COPY package.json yarn.lock ./
21- RUN yarn install --frozen-lockfile
22-
23- # COPY . ./
4+ FROM scratch
5+ COPY --from=data /now.txt /data_stage_built_at.txt
Original file line number Diff line number Diff line change 11version : ' 3'
22
33services :
4- node :
5- build :
6- context : ../
7- dockerfile : ./test_project/Dockerfile
8- mysql_pull_only :
9- image : mysql:8.0
4+ scratch :
5+ build : ' .'
6+ hello_world :
7+ image : hello-world
You can’t perform that action at this time.
0 commit comments