Created
April 16, 2024 14:03
-
-
Save saolsen/e30c9aee067d8fea68de1d38a36f7935 to your computer and use it in GitHub Desktop.
Deno On Fly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG DENO_VERSION=1.42.2 | |
ARG BIN_IMAGE=denoland/deno:bin-${DENO_VERSION} | |
FROM ${BIN_IMAGE} AS bin | |
FROM frolvlad/alpine-glibc:alpine-3.13 | |
RUN apk --no-cache add ca-certificates | |
RUN addgroup --gid 1000 deno \ | |
&& adduser --uid 1000 --disabled-password deno --ingroup deno \ | |
&& mkdir /deno-dir/ \ | |
&& chown deno:deno /deno-dir/ | |
ENV DENO_DIR /deno-dir/ | |
ENV DENO_INSTALL_ROOT /usr/local | |
ARG DENO_VERSION | |
ENV DENO_VERSION=${DENO_VERSION} | |
COPY --from=bin /deno /bin/deno | |
WORKDIR /deno-dir | |
COPY . . | |
ENTRYPOINT ["/bin/deno"] | |
CMD ["run", "--allow-env", "--allow-net", "main.ts"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = 'gameplay' | |
primary_region = 'ord' | |
[build] | |
[env] | |
PORT = '8000' | |
[processes] | |
app = 'run --allow-env --allow-net ./main.ts' | |
[http_service] | |
internal_port = 8000 | |
force_https = true | |
auto_stop_machines = true | |
auto_start_machines = true | |
min_machines_running = 1 | |
processes = ['app'] | |
[[vm]] | |
memory = '1gb' | |
cpu_kind = 'shared' | |
cpus = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment