Skip to content

Commit

Permalink
build: hadolintの警告を受けて修正 (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
SnO₂WMaN authored Apr 20, 2021
1 parent e0de5aa commit 687ef70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM node:14.16.0@sha256:fe842f5b828c121514d62cbe0ace0927aec4f3130297180c3343e54
WORKDIR /app

COPY package.json yarn.lock ./
COPY tsconfig.json tsconfig.build.json ./
COPY src ./src
RUN yarn install --frozen-lockfile && yarn cache clean

RUN yarn install --frozen-lockfile
COPY src ./src
COPY tsconfig.json tsconfig.build.json ./
RUN yarn build

FROM node:14.16.0-slim@sha256:e8a3dbe7f6d334acfe0365260626d3953073334de4c0fde00f93e8e9e19ed5d5
Expand All @@ -16,9 +16,9 @@ ENV PORT 4000
WORKDIR /app

COPY package.json yarn.lock ./
COPY --from=build /app/dist ./dist
RUN yarn install --frozen-lockfile && yarn cache clean

RUN yarn install --frozen-lockfile --production
COPY --from=build /app/dist ./dist

EXPOSE $PORT

Expand Down

0 comments on commit 687ef70

Please sign in to comment.