express-nodejs-app/Dockerfile
Sambo Chea c999b4a8f6
All checks were successful
continuous-integration/drone/push Build is passing
Fixed dockerfile build missing yarn
2021-09-16 18:25:35 +07:00

20 lines
470 B
Docker

FROM cubetiq/calpine-node:latest
LABEL maintainer="sombochea@cubetiqs.com"
RUN echo "Starting setting up timezone to ${TIMEZ}..."
ENV TIMEZ=Asia/Phnom_Penh
# For Alpine
# Setup Timezone
RUN apk update && \
apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/${TIMEZ} /etc/localtime && \
echo ${TIMEZ} > /etc/timezone
WORKDIR /app
COPY . /app
RUN yarn config set registry https://r.ctdn.net
RUN yarn && yarn build
EXPOSE 3000
CMD [ "yarn" , "serve"]