From 266f9ff234405b59f655430e0ba0944a09f2b1fa Mon Sep 17 00:00:00 2001 From: networkException Date: Wed, 5 Jan 2022 15:22:32 +0100 Subject: [PATCH] Container: Initial configuration --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e7e7ce8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:alpine as build + +WORKDIR /usr/src/app + +RUN sed -i 's/dl-cdn/dl-5/g' /etc/apk/repositories && sed -i 's/http:/https:/g' /etc/apk/repositories + +COPY .npmrc /usr/src/app/ +COPY package.json /usr/src/app/ +COPY package-lock.json /usr/src/app/ + +RUN npm install --production + +COPY . /usr/src/app +RUN npx tsc -p tsconfig.json + +FROM httpd:alpine + +COPY --from=build /usr/src/app/public/ /usr/local/apache2/htdocs/