mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +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
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 New Issue
Block a user