Build files outside and move in & install only !dev dependencies

This commit is contained in:
2022-11-02 22:21:00 +01:00
parent ef3a394657
commit 25ae3a2b65
3 changed files with 19 additions and 15 deletions

View File

@@ -1,20 +1,13 @@
FROM node:18
LABEL org.opencontainers.image.source https://github.com/KevinMidboe/figlet-http
RUN mkdir -p /opt/figlet-http/src
RUN mkdir -p /opt/figlet-http/lib
WORKDIR /opt/figlet-http
# COPY src/ src
# COPY tsconfig.json .
# COPY package.json .
# COPY yarn.lock .
COPY package.json .
COPY lib/ lib
COPY node_modules/ node_modules
# RUN yarn
# RUN yarn build
RUN yarn install --production
EXPOSE 3000