Skip to content

Commit 87c3ebd

Browse files
committed
docker empezado
1 parent 23dd7cc commit 87c3ebd

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed
File renamed without changes.

backend/gamelink/Dockerfile renamed to docker/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,27 @@ EXPOSE 8443
3434

3535
# Command that is executed when doing docker run
3636
CMD [ "java", "-jar", "gamelink-0.0.1-SNAPSHOT.jar" ]
37+
38+
#################################################
39+
# Base image for the application container
40+
#################################################
41+
42+
#Primera Etapa
43+
FROM node:10-alpine as build-step
44+
45+
RUN mkdir -p /app
46+
47+
WORKDIR /app
48+
49+
COPY package.json /app
50+
51+
RUN npm install
52+
53+
COPY . /app
54+
55+
RUN npm run build --prod
56+
57+
#Segunda Etapa
58+
FROM nginx:1.17.1-alpine
59+
#Si estas utilizando otra aplicacion cambia PokeApp por el nombre de tu app
60+
COPY --from=build-step /app/dist/PokeApp /usr/share/nginx/html
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)