File size: 477 Bytes
4056320
 
 
 
 
e99a92f
4056320
e99a92f
4056320
 
 
e99a92f
 
4056320
 
6c25065
e99a92f
6c25065
e99a92f
6c25065
e99a92f
 
 
 
 
4056320
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: Apache-2.0
#

FROM node:lts-alpine AS build

WORKDIR /tmp

COPY . .

RUN npm install -g npm@latest \
    && npm install \
    && npm run build

FROM hadadrjt/playground:public-latest AS production

COPY --from=build /tmp/package.json ./package.json

COPY --from=build /tmp/node_modules ./node_modules

COPY --from=build /tmp/dist ./dist

COPY --from=build /tmp/post ./post

CMD ["npm", "start"]