Removed config file and added example config file
This commit is contained in:
parent
5834d5d657
commit
0682dbc3be
4 changed files with 5 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
assets/config/config.yml
|
||||||
node_modules
|
node_modules
|
||||||
src/dist
|
src/dist
|
||||||
dev/docker/stacks/main/assets
|
dev/docker/stacks/main/assets
|
||||||
|
@ -6,3 +7,5 @@ dev/docker/stacks/main/assets
|
||||||
.yarn
|
.yarn
|
||||||
yarn.lock
|
yarn.lock
|
||||||
.yarnrc.yml
|
.yarnrc.yml
|
||||||
|
.pnp.cjs
|
||||||
|
.pnp.loader.mjs
|
||||||
|
|
|
@ -6,6 +6,7 @@ COPY package.json ./
|
||||||
COPY yarn.lock ./
|
COPY yarn.lock ./
|
||||||
COPY .env ./.env
|
COPY .env ./.env
|
||||||
COPY assets /assets
|
COPY assets /assets
|
||||||
|
RUN mv /assets/config/config.yml.example /assets/config/config.yml
|
||||||
COPY dev/shell/entrypoint.sh /entrypoint.sh
|
COPY dev/shell/entrypoint.sh /entrypoint.sh
|
||||||
RUN yarn && yarn clean && yarn build-prod
|
RUN yarn && yarn clean && yarn build-prod
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [[ ! -d "/app/assets/config" ]] && [[ ! -d "/app/assets/img" ]]; then
|
if [[ ! -d "/app/assets/config" ]] && [[ ! -d "/app/assets/img" ]]; then
|
||||||
echo "No config found, installing default files"
|
echo "No config found, installing default files"
|
||||||
|
mkdir /app/assets
|
||||||
cp -R /assets/* /app/assets
|
cp -R /assets/* /app/assets
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue