Docker update
This commit is contained in:
@ -4,10 +4,8 @@ FROM node:18-alpine AS development
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Fix Alpine repo and install build dependencies
|
# Install build dependencies
|
||||||
RUN sed -i -e 's|http://dl-cdn.alpinelinux.org|https://dl-cdn.alpinelinux.org|' /etc/apk/repositories \
|
RUN apk add --no-cache python3 make g++
|
||||||
&& apk update \
|
|
||||||
&& apk add --no-cache python3 make g++
|
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
@ -43,4 +41,4 @@ COPY .nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
|||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||||
Reference in New Issue
Block a user