Removed config file and added example config file

This commit is contained in:
Nikurasu 2023-01-11 21:57:09 +01:00
parent 5834d5d657
commit 0682dbc3be
4 changed files with 5 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
assets/config/config.yml
node_modules
src/dist
dev/docker/stacks/main/assets
@ -6,3 +7,5 @@ dev/docker/stacks/main/assets
.yarn
yarn.lock
.yarnrc.yml
.pnp.cjs
.pnp.loader.mjs

View File

@ -6,6 +6,7 @@ COPY package.json ./
COPY yarn.lock ./
COPY .env ./.env
COPY assets /assets
RUN mv /assets/config/config.yml.example /assets/config/config.yml
COPY dev/shell/entrypoint.sh /entrypoint.sh
RUN yarn && yarn clean && yarn build-prod
EXPOSE 3000

View File

@ -1,6 +1,7 @@
#!/bin/sh
if [[ ! -d "/app/assets/config" ]] && [[ ! -d "/app/assets/img" ]]; then
echo "No config found, installing default files"
mkdir /app/assets
cp -R /assets/* /app/assets
fi