Skip to content

Commit

Permalink
chore(Dockerfile): Use Alpine image for smaller size (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepChirp authored Oct 17, 2024
1 parent 224171c commit 76a6b3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ARG NODE_IMAGE=node
FROM ${NODE_IMAGE}:lts AS build
WORKDIR /app
ENV NODE_ENV production
ENV NODE_ENV=production
RUN set -eux; \
npm install --production tkserver@latest; \
mkdir -p data
FROM ${NODE_IMAGE}:lts-buster-slim
FROM ${NODE_IMAGE}:lts-alpine
WORKDIR /app
ENV NODE_ENV production
ENV NODE_ENV=production
COPY --from=build /app .
EXPOSE 8080
CMD ["/app/node_modules/.bin/tkserver"]

0 comments on commit 76a6b3f

Please sign in to comment.