19 lines
435 B
Docker
19 lines
435 B
Docker
FROM node:alpine as build
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN sed -i 's/dl-cdn/dl-5/g' /etc/apk/repositories && sed -i 's/http:/https:/g' /etc/apk/repositories
|
|
|
|
COPY package.json /usr/src/app/
|
|
COPY package-lock.json /usr/src/app/
|
|
|
|
RUN npm install --production
|
|
|
|
COPY . /usr/src/app
|
|
RUN npx tsc -p tsconfig.json
|
|
|
|
RUN cp -r /usr/src/app/src /usr/src/app/public
|
|
|
|
FROM httpd:alpine
|
|
|
|
COPY --from=build /usr/src/app/public/ /usr/local/apache2/htdocs/
|