2023-04-07 17:54:47 +00:00
|
|
|
FROM node:18-alpine
|
2019-12-16 13:02:51 +00:00
|
|
|
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
|
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2023-04-07 17:54:47 +00:00
|
|
|
# COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
|
|
|
|
# COPY .yarn /usr/src/app/.yarn
|
|
|
|
# COPY Backend /usr/src/app/Backend
|
|
|
|
# COPY Frontend /usr/src/app/Frontend
|
|
|
|
# COPY FrontendLegacy /usr/src/app/FrontendLegacy
|
2020-10-28 04:11:47 +00:00
|
|
|
|
2023-04-07 17:54:47 +00:00
|
|
|
COPY . /usr/src/app
|
2019-12-16 13:02:51 +00:00
|
|
|
|
2023-04-07 17:54:47 +00:00
|
|
|
# RUN rm -rf /usr/src/app/Backend/node_modules &&\
|
|
|
|
# rm -rf /usr/src/app/Frontend/node_modules &&\
|
|
|
|
# rm -rf /usr/src/app/FrontendLegacy/node_modules &&\
|
|
|
|
# rm -rf /usr/src/app/Backend/logs &&\
|
|
|
|
# rm -rf /usr/src/app/Backend/keys
|
2019-12-16 13:02:51 +00:00
|
|
|
|
2023-04-07 17:54:47 +00:00
|
|
|
RUN yarn install
|
|
|
|
RUN yarn build
|
2019-12-16 13:02:51 +00:00
|
|
|
|
2023-04-07 17:54:47 +00:00
|
|
|
RUN ln -s /usr/src/app/logs /usr/src/app/Backend/logs && ln -s /usr/src/app/keys /usr/src/app/Backend/keys
|
2019-12-16 13:02:51 +00:00
|
|
|
|
2019-12-16 13:41:20 +00:00
|
|
|
VOLUME [ "/usr/src/app/logs", "/usr/src/app/keys"]
|
2019-12-16 13:02:51 +00:00
|
|
|
|
|
|
|
EXPOSE 3004/tcp
|
|
|
|
|
2023-04-07 17:54:47 +00:00
|
|
|
WORKDIR /usr/src/app/Backend
|
2020-10-28 04:11:47 +00:00
|
|
|
CMD ["npm", "run", "start"]
|