0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00
Files
homebrewery/Dockerfile
David Bolack 674fb6ff57 Update Docker instructions in support of #1930
Updates README.DOCKER.md and Dockerfile
2024-12-20 20:33:12 -06:00

22 lines
555 B
Docker

FROM node:20-alpine
RUN apk --no-cache add git
ENV NODE_ENV=docker
# Create app directory
WORKDIR /usr/src/app
# Copy package.json into the image, then run yarn install
# This improves caching so we don't have to download the dependencies every time the code changes
COPY package.json ./
COPY config/default.json config/default.json
# --ignore-scripts tells yarn not to run postbuild. We run it explicitly later
RUN npm install --ignore-scripts
# Bundle app source and build application
COPY . .
RUN npm run build
EXPOSE 8000
CMD [ "npm", "start" ]