Skip to content

Commit

Permalink
revert ts-proto.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed May 2, 2023
1 parent 0717d5d commit 0660cd0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ts-proto.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:17-alpine as build

WORKDIR /ts-proto
COPY . .

# Install all dependencies needed for production build
RUN yarn install
RUN yarn build

# clean all depencies
RUN rm -rf node_modules
RUN yarn cache clean

# install production dependencies only
RUN yarn workspaces focus --production

FROM node:17-alpine

WORKDIR /ts-proto
COPY --from=build /ts-proto/build build
COPY --from=build /ts-proto/node_modules node_modules
COPY protoc-gen-ts_proto .

ENTRYPOINT ["./protoc-gen-ts_proto"]

0 comments on commit 0660cd0

Please sign in to comment.