Browse Source
fix: drop frozen-lockfile from dockerfile for fixing builds without my local registry
remotes/philippdormann/main
Philipp Dormann
4 years ago
No known key found for this signature in database
GPG Key ID: 3BB9ADD52DCA4314
1 changed files with
2 additions and
2 deletions
-
Dockerfile
|
@ -1,7 +1,7 @@ |
|
|
FROM node:16.8.0-alpine3.14 |
|
|
FROM node:16.8.0-alpine3.14 |
|
|
WORKDIR /app |
|
|
WORKDIR /app |
|
|
COPY . . |
|
|
COPY . . |
|
|
RUN yarn --frozen-lockfile |
|
|
RUN yarn |
|
|
RUN yarn build |
|
|
RUN yarn build |
|
|
# |
|
|
# |
|
|
FROM node:16.8.0-alpine3.14 |
|
|
FROM node:16.8.0-alpine3.14 |
|
@ -11,7 +11,7 @@ EXPOSE 50013 |
|
|
COPY package.json yarn.lock ./ |
|
|
COPY package.json yarn.lock ./ |
|
|
COPY ./db /app/db |
|
|
COPY ./db /app/db |
|
|
COPY ./server /app/server |
|
|
COPY ./server /app/server |
|
|
RUN yarn --frozen-lockfile --prod |
|
|
RUN yarn --prod |
|
|
RUN yarn cache clean |
|
|
RUN yarn cache clean |
|
|
COPY --from=0 /app/dist /app/dist |
|
|
COPY --from=0 /app/dist /app/dist |
|
|
ENTRYPOINT ["node", "server/server.js"] |
|
|
ENTRYPOINT ["node", "server/server.js"] |
|
|