2024-10-29 11:46:23 +00:00
|
|
|
FROM node:22-alpine
|
2022-06-30 12:10:19 +00:00
|
|
|
|
|
|
|
# needed to compile translations
|
2024-10-29 19:20:09 +00:00
|
|
|
RUN apk add --no-cache jq bash coreutils git python3
|
2022-06-30 12:10:19 +00:00
|
|
|
|
|
|
|
WORKDIR /app/
|
2024-10-24 10:57:12 +00:00
|
|
|
|
2024-10-29 19:20:09 +00:00
|
|
|
# Create node_modules directory to prevent it from being hidden by volume mounts
|
|
|
|
RUN mkdir -p node_modules
|
|
|
|
|
|
|
|
ADD scripts/ ./scripts/
|
|
|
|
ADD package.json yarn.lock ./
|
|
|
|
RUN yarn
|
|
|
|
|
|
|
|
VOLUME /app
|
|
|
|
VOLUME /app/node_modules
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
CMD ["yarn", "dev", "--host"]
|