Browse Source

fix: Reverted original docker image building

pull/7619/head
Ruslan Semak 2 months ago
parent
commit
7160c52bf7
3 changed files with 9 additions and 5 deletions
  1. 3
      dev/build/Dockerfile
  2. 2
      dev/build/config.yml
  3. 9
      docker-compose.yml

3
dev/build/Dockerfile

@ -17,7 +17,6 @@ COPY ./.eslintrc.yml ./.eslintrc.yml
RUN yarn cache clean
RUN yarn --frozen-lockfile --non-interactive
RUN yarn build
RUN rm -rf /wiki/node_modules
RUN yarn --production --frozen-lockfile --non-interactive
@ -41,7 +40,7 @@ COPY --chown=node:node --from=assets /wiki/assets ./assets
COPY --chown=node:node --from=assets /wiki/node_modules ./node_modules
COPY --chown=node:node ./server ./server
COPY --chown=node:node --from=assets /wiki/server/views ./server/views
COPY --chown=node:node ./config.yml ./config.yml
COPY --chown=node:node ./dev/build/config.yml ./config.yml
COPY --chown=node:node ./package.json ./package.json
COPY --chown=node:node ./LICENSE ./LICENSE

2
dev/build/config.yml

@ -1,5 +1,3 @@
# WARNING: This file is not using in docker build
# Instead of it will be used file "config.yml" from root folder (that file which ignored in ".gitignore")
port: 3000
bindIP: 0.0.0.0
db:

9
docker-compose.yml

@ -1,12 +1,19 @@
services:
app:
container_name: wiki
restart: unless-stopped
build:
context: .
dockerfile: ./dev/build/Dockerfile
environment:
DB_TYPE: postgres
DB_HOST: localhost
DB_PORT: 5432
DB_USER: wiki
DB_PASS: wiki
DB_NAME: wiki
ports:
- "80:3000"
restart: unless-stopped
networks:
- wiki

Loading…
Cancel
Save