mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Merge pull request #187 from TuiSoftware/keep-dockerfile-consistency
use yarn and frozen lock to keep consistency
This commit is contained in:
commit
d5b8717899
1 changed files with 7 additions and 5 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -5,11 +5,13 @@ ARG DATABASE_TYPE
|
|||
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
|
||||
DATABASE_TYPE=$DATABASE_TYPE
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install && npm run build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
COPY package.json yarn.lock /app/
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY . /app
|
||||
RUN yarn build
|
||||
|
||||
CMD ["yarn", "start"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue