Build files outside and move in & install only !dev dependencies
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user