Created
April 21, 2022 12:37
-
-
Save evbruno/80ea32222b9e52c450b9e281dcff6133 to your computer and use it in GitHub Desktop.
docker build / buildkit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:lts | |
WORKDIR /app | |
RUN echo "const express = require('express')" > index.js | |
RUN echo "const app = express()" >> index.js | |
RUN echo "app.get('/', function (req, res) {" >> index.js | |
RUN echo "res.send('Hello World')" >> index.js | |
RUN echo "})" >> index.js | |
RUN echo "app.listen(3000)" >> index.js | |
RUN npm install --save express | |
CMD node index.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1st test - build with the current bash config
2nd test - disable DOCKER_BUILDKIT and build it
3rd test - enable DOCKER_BUILDKIT and build it