socialtree/dev/docker/images/main/Dockerfile

13 lines
387 B
Text
Raw Normal View History

2022-10-28 13:39:35 +01:00
FROM node:lts-alpine
LABEL maintainer="nikurasu_tan publicmail@nikurasu.gay"
WORKDIR /app
COPY src/ ./src
COPY package.json ./
COPY yarn.lock ./
COPY .env ./.env
2022-10-28 13:39:35 +01:00
COPY assets /assets
RUN mv /assets/config/config.yml.example /assets/config/config.yml
2022-10-28 13:39:35 +01:00
COPY dev/shell/entrypoint.sh /entrypoint.sh
RUN yarn && yarn clean && yarn build-prod
2022-10-28 13:39:35 +01:00
EXPOSE 3000
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]