mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00: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…
Reference in a new issue