Skip to content
Snippets Groups Projects
Dockerfile 767 B
Newer Older
FROM node:16.12.0-alpine3.13 AS builder
Griefed's avatar
Griefed committed
ARG BRANCH_OR_TAG=main
ARG HOSTER=git.griefed.de
RUN \
  apk add \
    git \
    npm && \
  git clone \
Griefed's avatar
Griefed committed
      https://$HOSTER/Griefed/ltt-mapmaker.git \
  npm install -g npm@7.23.0 && \
  npm install -g @quasar/cli && \
  npm install && \
  quasar build

Griefed's avatar
Griefed committed
ARG VERSION=dev

LABEL maintainer="Griefed <griefed@griefed.de>"
Griefed's avatar
Griefed committed
LABEL version=$VERSION
LABEL description="Visual Map Maker for Let Them Trade by Spaceflower."

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