We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I've had to do this a few times in the past, so just putting this here for reference in case someone finds it useful.
FROM ubuntu:22.04 RUN \ apt-get update && \ apt-get install -y \ curl \ unzip RUN \ curl -fsSL https://deb.nodesource.com/setup_lts.x | sh - && \ apt-get install -y nodejs && \ npm i -g yarn WORKDIR /tmp ADD \ https://github.com/tabixio/tabix/archive/refs/heads/master.zip . RUN \ unzip master.zip && rm master.zip && \ cd tabix-master && \ echo 'nodeLinker: node-modules' > .yarnrc.yml && \ yarn set version 3.1.1 && \ yarn install && \ yarn build WORKDIR /tmp/tabix-master/dist CMD [ "python3", "-m", "http.server" ]
Build with docker build -t tabix . and run with docker run --it -p 8000:8000 tabix.
docker build -t tabix .
docker run --it -p 8000:8000 tabix
The text was updated successfully, but these errors were encountered:
Smaller image version:
FROM ubuntu:22.04 AS builder RUN \ apt-get update && \ apt-get install -y \ curl \ unzip RUN \ curl -fsSL https://deb.nodesource.com/setup_lts.x | sh - && \ apt-get install -y nodejs && \ npm i -g yarn WORKDIR /tmp ADD \ https://github.com/tabixio/tabix/archive/refs/heads/master.zip . RUN \ unzip master.zip && rm master.zip && \ cd tabix-master && \ echo 'nodeLinker: node-modules' > .yarnrc.yml && \ yarn set version 3.1.1 && \ yarn install && \ yarn build FROM python:alpine COPY --from=builder \ /tmp/tabix-master/dist \ /tabix WORKDIR /tabix CMD [ "python3", "-m", "http.server" ]
Sorry, something went wrong.
for me versions above didn't worked untill i set up port in CMD
FROM ubuntu:22.04 RUN \ apt-get update && \ apt-get install -y \ curl \ unzip RUN \ curl -fsSL https://deb.nodesource.com/setup_lts.x | sh - && \ apt-get install -y nodejs && \ npm i -g yarn WORKDIR /tmp ADD \ https://github.com/tabixio/tabix/archive/refs/heads/master.zip . RUN \ unzip master.zip && rm master.zip && \ cd tabix-master && \ echo 'nodeLinker: node-modules' > .yarnrc.yml && \ yarn set version 3.1.1 && \ yarn install && \ yarn build WORKDIR /tmp/tabix-master/dist CMD [ "python3", "-m", "http.server", "8000" ]
No branches or pull requests
Hi,
I've had to do this a few times in the past, so just putting this here for reference in case someone finds it useful.
Build with
docker build -t tabix .
and run withdocker run --it -p 8000:8000 tabix
.The text was updated successfully, but these errors were encountered: