forked from keroxp/servest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (18 loc) · 683 Bytes
/
Dockerfile
File metadata and controls
18 lines (18 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM debian:stretch
RUN apt update -y && apt install curl unzip -y
ARG DENO_VERSION
ENV DENO_DIR=/deno
ENV DENO_INSTALL=${DENO_DIR}/.deno
ENV PATH=${DENO_INSTALL}/bin:${PATH}
RUN curl -fsSL https://deno.land/x/install/install.sh | sh -s -- ${DENO_VERSION} \
&& deno -V
COPY modules.json modules-lock.json /servest/
COPY ./vendor /servest/vendor
COPY ./tools/fetch_dir.ts /servest/tools/fetch_dir.ts
RUN deno run -A /servest/tools/fetch_dir.ts /servest/vendor
COPY . /servest
RUN deno run -A /servest/tools/fetch_dir.ts /servest/site
WORKDIR /servest/site
ENV PORT=${PORT}
EXPOSE ${PORT}
CMD ["deno", "run", "--allow-net", "--allow-read", "--allow-env", "/servest/site/index.ts"]