Projekt

Obecné

Profil

Stáhnout (584 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
FROM node:lts as build
2

    
3
ENV NPM_CONFIG_LOGLEVEL warn
4
WORKDIR app
5

    
6
COPY package.json package.json
7
COPY yarn.lock yarn.lock
8
RUN yarn install --pure-lockfile
9

    
10
COPY . .
11

    
12
RUN npx browserslist@latest --update-db
13
RUN yarn build
14

    
15
FROM node:lts
16
WORKDIR app
17

    
18
COPY package.json package.json
19
COPY next.config.js next.config.js
20

    
21
COPY yarn.lock yarn.lock
22
RUN yarn install --pure-lockfile --production
23

    
24
COPY --from=build app/.next .next
25
COPY --from=build app/public public
26

    
27
ENV NPM_CONFIG_LOGLEVEL warn
28

    
29

    
30
ARG BACKEND_URL=$BACKEND_URL
31
ENV BACKEND_URL=$BACKEND_URL
32

    
33
EXPOSE 5000
34

    
35
CMD yarn start -p 5000
(5-5/14)