Skip to content

Commit

Permalink
update: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SIY1121 committed Mar 28, 2021
1 parent 8e6a2c3 commit dcf52ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ services:
command: /bin/sh -c "while sleep 1000; do :; done"
postgres:
image: postgres:13.1
container_name: postgres-container
environment:
POSTGRES_PASSWORD: postgres
volumes:
Expand Down
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PG_HOST=localhost
PG_HOST=postgres
PG_PORT=5432
PG_DATABASE=twinte_session_service
PG_USER=postgres
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ RUN yarn schema
RUN yarn build


FROM node:14-alpine
FROM node:14-slim
WORKDIR /usr/src/app

LABEL org.opencontainers.image.source https://github.com/twin-te/session-service

RUN apt-get -qy update && apt-get install -qy openssl

COPY --from=build-env /usr/src/app/dist ./dist
COPY --from=build-env /usr/src/app/prisma ./prisma
COPY --from=build-env /usr/src/app/protos ./protos
Expand Down

0 comments on commit dcf52ff

Please sign in to comment.