1
.yarnrc.yml
Normal file
1
.yarnrc.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
nodeLinker: node-modules
|
||||||
@@ -26,10 +26,10 @@ RUN yarn typecheck
|
|||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
|
|
||||||
# Files required by npm install
|
# Files required by npm install
|
||||||
COPY package*.json ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
# Install only production app dependencies
|
# Install only production app dependencies
|
||||||
#RUN yarn install
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -38,4 +38,5 @@ USER node
|
|||||||
|
|
||||||
# Start the app
|
# Start the app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["node", "--import", "tsx", "./src/main.ts"]
|
CMD ["yarn", "start"]
|
||||||
|
# CMD ["node", "--import", "tsx", "./src/main.ts"]
|
||||||
Reference in New Issue
Block a user