From 8a034aa4f10bfbc317fde0cf6ee3a0f2b5642d52 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 7 Jul 2022 07:30:57 +0430 Subject: a branch for bun which currently doesnt work because bun cant run a real program --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 551946e..f614abe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,18 @@ -FROM alpine:3.15 AS certbuilder +# vi: ft=Dockerfile +FROM alpine:3.16 AS certbuilder RUN apk add openssl WORKDIR /certs RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert -FROM node:lts-alpine3.15 +FROM debian:bullseye-slim +RUN apt update && apt-get install -y bash curl unzip +RUN curl https://bun.sh/install | bash +# COPY /root/.bun/bin/bun /usr/bin/ +ENV PATH="/root/.bun/bin:${PATH}" COPY --from=certbuilder /certs/ /certs COPY ./package.* /server/ -RUN cd /server && npm install --production +WORKDIR /server +RUN /root/.bun/bin/bun install COPY ./css /server/css/ COPY ./views /server/views/ COPY ./static /server/static/ -- cgit v1.2.3