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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue