22 lines
288 B
Docker
22 lines
288 B
Docker
FROM alpine
|
|
|
|
RUN apk update && apk upgrade
|
|
|
|
RUN apk add nodejs
|
|
|
|
COPY ["client", "/app/client"]
|
|
COPY ["server", "/app/server"]
|
|
|
|
RUN addgroup -S up1 && adduser -S up1 -G up1
|
|
|
|
RUN chown -R up1:up1 /app
|
|
|
|
USER up1
|
|
|
|
WORKDIR "/app/server"
|
|
|
|
RUN npm install
|
|
|
|
VOLUME ["/app/i"]
|
|
|
|
CMD node server.js
|