mirror of https://github.com/tikv/website.git
17 lines
333 B
Docker
17 lines
333 B
Docker
FROM alpine:latest
|
|
RUN apk update
|
|
RUN apk add hugo yarn make git
|
|
|
|
RUN adduser builder -D
|
|
USER builder
|
|
|
|
RUN mkdir -p /home/builder/build
|
|
WORKDIR /home/builder/build
|
|
COPY package.json /home/builder/build
|
|
COPY yarn.lock /home/builder/build
|
|
RUN yarn
|
|
|
|
COPY . /home/builder/build
|
|
CMD /bin/sh -c "yarn && make serve-production"
|
|
EXPOSE 1313
|