mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fixing docker build
This commit is contained in:
parent
f88276fff5
commit
dfceb51f23
@ -1,6 +1,6 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
styleguide/node_modules/
|
styleguide/
|
||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -30,6 +30,7 @@ build/Release
|
|||||||
|
|
||||||
# Dependency directories
|
# Dependency directories
|
||||||
node_modules/
|
node_modules/
|
||||||
|
styleguide/
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
# TypeScript v1 declaration files
|
||||||
typings/
|
typings/
|
||||||
|
|||||||
@ -19,9 +19,6 @@ COPY . .
|
|||||||
FROM base as build-and-test
|
FROM base as build-and-test
|
||||||
RUN cp .env.template .env
|
RUN cp .env.template .env
|
||||||
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
||||||
RUN cd styleguide && yarn install --production=false --frozen-lockfile --non-interactive \
|
|
||||||
&& cd .. \
|
|
||||||
&& yarn run styleguide:build
|
|
||||||
RUN yarn run build
|
RUN yarn run build
|
||||||
|
|
||||||
FROM base as production
|
FROM base as production
|
||||||
|
|||||||
@ -8,9 +8,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- .:/nitro-web
|
- .:/nitro-web
|
||||||
- node_modules:/nitro-web/node_modules
|
- node_modules:/nitro-web/node_modules
|
||||||
- node_modules_styleguide:/nitro-web/styleguide/node_modules
|
|
||||||
command: yarn run dev
|
command: yarn run dev
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
node_modules:
|
node_modules:
|
||||||
node_modules_styleguide:
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user