mirror of
https://github.com/thaldrin/thaldrin.git
synced 2024-08-14 23:57:21 +00:00
20 lines
358 B
Docker
20 lines
358 B
Docker
|
FROM node:16-alpine
|
||
|
|
||
|
LABEL MAINTAINER="Lio <lion@himbo.cat>"
|
||
|
|
||
|
RUN apk update && apk add git ca-certificates curl
|
||
|
|
||
|
WORKDIR /opt/thaldrin
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN npm i -g typescript
|
||
|
RUN npm i
|
||
|
RUN rm -rf build
|
||
|
RUN tsc
|
||
|
RUN cp -r src/modules/lingua/langs build/src/modules/lingua/langs
|
||
|
|
||
|
# RUN rm -rf src
|
||
|
RUN npm cache clean --force
|
||
|
|
||
|
ENTRYPOINT ["npm", "run", "node:start"]
|