mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-26 15:58:50 +00:00
37 lines
No EOL
702 B
Docker
37 lines
No EOL
702 B
Docker
FROM node:22.16.0-alpine
|
|
|
|
RUN apk add --no-cache \
|
|
libstdc++ \
|
|
&& apk add --no-cache --virtual .build-deps-full \
|
|
bash \
|
|
binutils-gold \
|
|
curl \
|
|
g++ \
|
|
gcc \
|
|
gnupg \
|
|
libgcc \
|
|
linux-headers \
|
|
make \
|
|
python3 \
|
|
ccache \
|
|
xz
|
|
|
|
# confirm installation
|
|
RUN node -v
|
|
RUN npm -v
|
|
|
|
ENV MONGO_URL=mongodb://mongo:27017/get_my\
|
|
ROOT_URL=http://localhost \
|
|
PORT=3000 \
|
|
MAIL_URL=smtp://USERNAME:PASSWORD@HOST:PORT
|
|
|
|
RUN mkdir -p /usr/src/get_my
|
|
WORKDIR /usr/src/get_my
|
|
COPY ../bundle/ /usr/src/get_my/
|
|
|
|
RUN cd /usr/src/get_my/programs/server/ \
|
|
&& npm install
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD [ "node", "main.js" ] |