Created
August 8, 2020 02:07
-
-
Save luketn/83e3ba3cef91a534b06178692149331f to your computer and use it in GitHub Desktop.
Docker file to install K6 and set up a NodeJS app to run.
This file contains hidden or 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:14.7.0 | |
#Install K6 | |
WORKDIR /tmp | |
ADD https://github.com/loadimpact/k6/releases/download/v0.27.1/k6-v0.27.1-linux64.tar.gz /tmp/k6-v0.27.1-linux64.tar.gz | |
RUN tar -xzf k6-v0.27.1-linux64.tar.gz | |
RUN mv k6-v0.27.1-linux64/k6 /usr/bin/k6 | |
#Install NPM dependencies | |
COPY loadtest-home /loadtest-home | |
WORKDIR /loadtest-home | |
RUN npm ci | |
ENTRYPOINT node index.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What would be inside index.js?