move volume creation before copying files to make them avilable on external volumes

This commit is contained in:
David Abutbul 2022-01-25 00:47:25 +02:00
parent a819509783
commit 7b50db6f27
1 changed files with 9 additions and 9 deletions

View File

@ -5,6 +5,15 @@ LABEL maintainer="dave@force9.org"
ENV NVM_DIR /root/.nvm
ENV DEBIAN_FRONTEND noninteractive
# enigma storage mounts
VOLUME /enigma-bbs/art
VOLUME /enigma-bbs/config
VOLUME /enigma-bbs/db
VOLUME /enigma-bbs/filebase
VOLUME /enigma-bbs/logs
VOLUME /enigma-bbs/mods
VOLUME /mail
COPY . /enigma-bbs
# Do some installing!
@ -28,15 +37,6 @@ RUN apt-get update && apt-get install -y \
# sexyz
COPY docker/bin/sexyz /usr/local/bin
# enigma storage mounts
VOLUME /enigma-bbs/art
VOLUME /enigma-bbs/config
VOLUME /enigma-bbs/db
VOLUME /enigma-bbs/filebase
VOLUME /enigma-bbs/logs
VOLUME /enigma-bbs/mods
VOLUME /mail
# Enigma default port
EXPOSE 8888