2021-05-13 12:50:03 +00:00
|
|
|
FROM node:16-alpine
|
|
|
|
|
|
|
|
LABEL MAINTAINER="Lio <lion@himbo.cat>"
|
|
|
|
|
|
|
|
RUN apk update && apk add git ca-certificates
|
|
|
|
|
|
|
|
WORKDIR /opt/thaldrin
|
|
|
|
COPY . .
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
RUN npm i -g typescript
|
|
|
|
|
2021-07-11 12:45:29 +00:00
|
|
|
RUN npm i
|
2021-07-11 17:19:37 +00:00
|
|
|
RUN rm -rf build
|
|
|
|
RUN tsc
|
|
|
|
RUN cp -r src/utils/lingua/langs build/src/utils/lingua/langs
|
2021-05-13 12:50:03 +00:00
|
|
|
|
2021-07-11 12:45:29 +00:00
|
|
|
|
2021-05-13 12:50:03 +00:00
|
|
|
RUN rm -rf src
|
|
|
|
RUN npm cache clean --force
|
|
|
|
|
2021-07-08 11:45:56 +00:00
|
|
|
ENTRYPOINT [ "npm", "run", "node:start"]
|