Skip to content

Commit

Permalink
fix yarn command
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitquette committed Dec 27, 2023
1 parent 4447f17 commit 03d99ed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM node:20-alpine
ENV appDir /usr/src/app
# ENV yarnDir /root/.yarn/bin

# install Yarn
# RUN npm install --global yarn

# use changes to package.json to force Docker not to use the cache
# when we change our application's nodejs dependencies:
Expand All @@ -15,7 +11,7 @@ RUN mkdir -p ${appDir} && cp -a /tmp/node_modules ${appDir}/
# "layer" thats been cached will be used if possible
WORKDIR ${appDir}
COPY . ${appDir}
RUN ${yarnDir}/yarn build
RUN yarn build
# VOLUME ${appDir}/config

EXPOSE 5000
Expand Down

0 comments on commit 03d99ed

Please sign in to comment.