Container: Initial configuration
This commit is contained in:
parent
b4d1a28824
commit
266f9ff234
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
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 .npmrc /usr/src/app/
|
||||||
|
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
|
||||||
|
|
||||||
|
FROM httpd:alpine
|
||||||
|
|
||||||
|
COPY --from=build /usr/src/app/public/ /usr/local/apache2/htdocs/
|
Loading…
Reference in a new issue