fix Dockerfiles
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
name: Build Alpine Node.js
|
name: Build Alpine Node.js
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -22,14 +21,6 @@ jobs:
|
|||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
docker build --file Dockerfile --tag alpine_nodejs:${{github.event.inputs.NodeVersion}} --build-arg NodeVersion=${{github.event.inputs.NodeVersion}} --build-arg PythonVersion=${{github.event.inputs.PythonVersion}} .
|
docker build --file Dockerfile --tag alpine_nodejs:${{github.event.inputs.NodeVersion}} --build-arg NodeVersion=${{github.event.inputs.NodeVersion}} --build-arg PythonVersion=${{github.event.inputs.PythonVersion}} .
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Debugging with tmate
|
|
||||||
uses: mxschmitt/action-tmate@v3
|
|
||||||
- name: Copy alpine node.js out
|
- name: Copy alpine node.js out
|
||||||
run: |
|
run: |
|
||||||
mkdir $RUNNER_TEMP/alpine_node
|
mkdir $RUNNER_TEMP/alpine_node
|
||||||
@@ -55,20 +46,3 @@ jobs:
|
|||||||
tar xzf ./node-${{github.event.inputs.NodeVersion}}-alpine-x64.tar.gz
|
tar xzf ./node-${{github.event.inputs.NodeVersion}}-alpine-x64.tar.gz
|
||||||
./bin/node -v
|
./bin/node -v
|
||||||
./bin/node -e "console.log('hello world')"
|
./bin/node -e "console.log('hello world')"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -14,11 +14,11 @@ RUN wget https://nodejs.org/dist/$NodeVersion/node-$NodeVersion.tar.gz && tar -z
|
|||||||
RUN cd node-$NodeVersion && ./configure --dest-cpu=x64 --partly-static && make -j$(getconf _NPROCESSORS_ONLN)
|
RUN cd node-$NodeVersion && ./configure --dest-cpu=x64 --partly-static && make -j$(getconf _NPROCESSORS_ONLN)
|
||||||
|
|
||||||
# create and copy tar.gz into /node_staging
|
# create and copy tar.gz into /node_staging
|
||||||
RUN mkdir -p /usr/src/out
|
RUN mkdir -p /usr/src/out/bin
|
||||||
WORKDIR /usr/src/out
|
WORKDIR /usr/src/out
|
||||||
RUN cp /usr/src/app/node-$NodeVersion/out/Release/node /usr/src/out/bin
|
RUN cp /usr/src/app/node-$NodeVersion/out/Release/node /usr/src/out/bin/node
|
||||||
RUN cp /usr/src/app/node-$NodeVersion/LICENSE /usr/src/out/LICENSE
|
RUN cp /usr/src/app/node-$NodeVersion/LICENSE /usr/src/out/LICENSE
|
||||||
RUN tar -czvf node-$NodeVersion-alpine-x64.tar.gz ./bin ./LICENSE
|
RUN tar -czvf node-$NodeVersion-alpine-x64.tar.gz ./bin ./LICENSE && rm -rf ./bin ./LICENSE
|
||||||
RUN cp ./node-$NodeVersion-alpine-x64.tar.gz /node_staging
|
RUN cp ./node-$NodeVersion-alpine-x64.tar.gz /node_staging
|
||||||
|
|
||||||
# copy the tar.gz into the mapped in volume
|
# copy the tar.gz into the mapped in volume
|
||||||
|
|||||||
Reference in New Issue
Block a user