Skip to content
Snippets Groups Projects
Commit 0fc07c37 authored by Griefed's avatar Griefed :joystick:
Browse files

build: Add Docker container configuration for NGINX and Dockerfile

parent 4a9b735d
No related branches found
No related tags found
No related merge requests found
FROM node:16.6.1-alpine3.13 AS builder
RUN \
apk add \
git \
npm && \
git clone \
https://github.com/Griefed/ltt-mapmaker.git \
/tmp/lttmm && \
cd /tmp/lttmm && \
npm install -g npm@7.17.0 && \
npm install -g @quasar/cli && \
npm install && \
quasar build
FROM lsiobase/nginx:3.14
LABEL maintainer="Griefed <griefed@griefed.de>"
RUN \
mkdir -p \
/app/lttmm && \
echo "**** Cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*
COPY --from=builder tmp/lttmm/dist/spa/ /app/lttmm
COPY root/ /
EXPOSE 80 443
VOLUME /config
server {
listen 80 default_server;
listen 443 ssl;
root /app/lttmm;
index index.php index.html index.htm;
server_name _;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key;
client_max_body_size 0;
location / {
root /app/lttmm;
index index.html index.htm;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment