Skip to main content
Module

x/esm/Dockerfile

✦ A fast, smart, & global CDN for modern(es2015+) web development.
Go to Latest
File
FROM golang:1.18 AS build
RUN apt-get update -y && apt-get install -y xz-utilsRUN useradd -u 1000 -m esmRUN mkdir /esm && chown esm:esm /esmRUN git clone https://github.com/esm-dev/esm.sh /esm/esm.shRUN git checkout v119
USER esmWORKDIR /esmRUN go build -o bin/esmd esm.sh/main.go
RUN echo "{\"port\":80,\"workDir\":\"/esm\"}" >> /esm/config.jsonENTRYPOINT ["/esm/bin/esmd", "--config", "config.json"]