forked from tamasszoke/deno-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 877 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Production
FROM ubuntu:groovy-20200609
EXPOSE 80
ENV DENO_VERSION=1.2.0
# Deno
RUN apt-get -qq update \
&& apt-get upgrade -y -o Dpkg::Options::="--force-confold" \
&& apt-get -qq install -y ca-certificates curl unzip --no-install-recommends \
&& curl -fsSL https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip \
--output deno.zip \
&& unzip deno.zip \
&& rm deno.zip \
&& chmod 777 deno \
&& mv deno /usr/bin/deno \
&& apt-get -qq remove -y ca-certificates curl unzip \
&& apt-get -y -qq autoremove \
&& apt-get -qq clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Denon
RUN deno install --unstable -f --allow-read --allow-run --allow-write --allow-net https://deno.land/x/[email protected]/denon.ts
ENV PATH="/root/.deno/bin:$PATH"
COPY /build/ /app/
WORKDIR /app
CMD ["sh", "-c", "denon prod"]